From 77afeb7159c863dcbf2efc9b9cef86dde7316085 Mon Sep 17 00:00:00 2001 From: Ben Wakeford Date: Sun, 15 Sep 2024 11:26:48 -0400 Subject: [PATCH] remove loopvar escape since we're on go1.22 now --- graceful/graceful.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/graceful/graceful.go b/graceful/graceful.go index 80293f1..8ec6b40 100644 --- a/graceful/graceful.go +++ b/graceful/graceful.go @@ -51,7 +51,6 @@ func (g Group) Start(ctx context.Context, signals ...os.Signal) error { if r == nil { continue } - r := r eg.Go(func() error { return r.Start(ctx) }) } @@ -77,7 +76,6 @@ func (g Group) Stop(ctx context.Context, timeout time.Duration) error { if r == nil { continue } - r := r eg.Go(func() error { return r.Stop(ctx) }) }