Skip to content

Commit

Permalink
remove loopvar escape since we're on go1.22 now
Browse files Browse the repository at this point in the history
  • Loading branch information
wafer-bw committed Sep 15, 2024
1 parent 00e1a14 commit 77afeb7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions graceful/graceful.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
}

Expand All @@ -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) })
}

Expand Down

0 comments on commit 77afeb7

Please sign in to comment.