fix go vet error
@@ -10,7 +10,7 @@ import (
// ContextWithSignal creates a context canceled when SIGINT or SIGTERM are notified
func ContextWithSignal(ctx context.Context) context.Context {
ctx, cancel := context.WithCancel(ctx)
- signals := make(chan os.Signal)
+ signals := make(chan os.Signal, 1)
signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-signals
