Skip to content

Commit

Permalink
remove a comment
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Apr 8, 2024
1 parent 8be8ad2 commit 24d9601
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/syncutil/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func Go[T any](ctx context.Context, limiter *semaphore.Weighted, fn GoFunc[T], i
eg.Go(func(t T) func() error {
return func() error {
defer region.End()
// cancel the gorountine before the next goroutine is created
err := fn(egCtx, region, t)
if err != nil {
egErr.CompareAndSwap(nil, err)
Expand Down

0 comments on commit 24d9601

Please sign in to comment.