Fix node-authorizer/pkg/server staticcheck failure

This commit is contained in:
Ciprian Hacman 2020-02-28 09:38:42 +02:00
parent c4f6ad06d8
commit 55aeafb9c3
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
node-authorizer/pkg/server

View File

@ -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)
}()