Skip to content

Commit

Permalink
fix bug (#4337)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town authored Feb 27, 2024
1 parent c5ef09a commit fb55027
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/server/handlers/release/update_image_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ func (c *UpdateImageBatchHandler) ServeHTTP(w http.ResponseWriter, r *http.Reque
errs := make([]string, 0)

for i := range namespaceScopedReleases {
index := i
wg.Add(1)

go func() {
go func(index int) {
ctx, span := telemetry.NewSpan(ctx, "update-image-batch")
defer span.End()
defer wg.Done()
Expand Down Expand Up @@ -142,7 +141,7 @@ func (c *UpdateImageBatchHandler) ServeHTTP(w http.ResponseWriter, r *http.Reque
mu.Unlock()
}
}
}()
}(i)
}

wg.Wait()
Expand Down

0 comments on commit fb55027

Please sign in to comment.