diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index eab5fc0654..446dc29b90 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,5 +19,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: - version: v2.1.6 + version: v2.6.0 args: --timeout=5m diff --git a/trillian/ctfe/ct_server/main.go b/trillian/ctfe/ct_server/main.go index 44885bc9b2..a61c3159d0 100644 --- a/trillian/ctfe/ct_server/main.go +++ b/trillian/ctfe/ct_server/main.go @@ -346,8 +346,8 @@ func main() { } shutdownWG := new(sync.WaitGroup) + shutdownWG.Add(1) go awaitSignal(func() { - shutdownWG.Add(1) defer shutdownWG.Done() // Allow 60s for any pending requests to finish then terminate any stragglers ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)