diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index 859d936c1a..e69de29bb2 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -1 +0,0 @@ -node-authorizer/pkg/server diff --git a/node-authorizer/pkg/server/server.go b/node-authorizer/pkg/server/server.go index 30d8021d0a..e715da4c05 100644 --- a/node-authorizer/pkg/server/server.go +++ b/node-authorizer/pkg/server/server.go @@ -118,7 +118,7 @@ func (n *NodeAuthorizer) Run() error { }() go func() { - c := make(chan os.Signal) + c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGINT) errs <- fmt.Errorf("received termination signal: %s", <-c) }()