forked from k-space/godoor
small lint fixup
This commit is contained in:
@@ -7,9 +7,9 @@ WORKDIR /godoor
|
|||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download && go mod verify
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# fully static build (takes ~300s to build):
|
||||||
ENV GOBUILDLDFLAGS="-linkmode 'external' -extldflags '-static'"
|
ENV GOBUILDLDFLAGS="-linkmode 'external' -extldflags '-static'"
|
||||||
RUN go build -tags netgo .
|
RUN go build -tags netgo .
|
||||||
|
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ func setup(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func listenSig1(ctx context.Context, wiegand Wiegand) {
|
func listenSig1(ctx context.Context, wiegand Wiegand) {
|
||||||
usrSig := make(chan os.Signal)
|
usrSig := make(chan os.Signal, 1)
|
||||||
signal.Notify(usrSig, syscall.SIGUSR1)
|
signal.Notify(usrSig, syscall.SIGUSR1)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|||||||
Reference in New Issue
Block a user