small lint fixup

This commit is contained in:
2026-06-11 22:04:06 +03:00
parent 7bd5f4184b
commit bd94037e29
2 changed files with 2 additions and 2 deletions

View File

@@ -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 .

View File

@@ -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 {