Skip to content

Commit

Permalink
fix: Fix loop variable capture in case of multiple queues.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamd3vil committed Mar 14, 2024
1 parent e2d7d2b commit 30b111a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func (s *Server) Start(ctx context.Context) {

var wg sync.WaitGroup
for q, conc := range queues {
q := q // Hack to fix the loop variable capture issue.
if s.traceProv != nil {
var span spans.Span
ctx, span = otel.Tracer(tracer).Start(ctx, "start")
Expand Down

0 comments on commit 30b111a

Please sign in to comment.