Skip to content

Commit

Permalink
fix: Fix loop variable capture in case of multiple queues. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamd3vil authored Mar 14, 2024
1 parent fffd246 commit 7394168
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 7394168

Please sign in to comment.