diff --git a/signal/server.go b/signal/server.go index 5389f1a..689296f 100644 --- a/signal/server.go +++ b/signal/server.go @@ -79,6 +79,9 @@ func (s *Server) Start(ctx context.Context) error { case sig := <-ch: if hs, ok := handlers[sig]; ok { for _, h := range hs { + // Fix variable overwritten in lower version of go + var h = h //nolint:gofumpt + // if Support AsyncFeature if async, ok := h.(AsyncFeature); ok && async.Async() { go s.handle(sig, h)