From 73941683b223005c73f058351a73b568b010765c Mon Sep 17 00:00:00 2001 From: Sarat Chandra Date: Thu, 14 Mar 2024 11:42:53 +0530 Subject: [PATCH] fix: Fix loop variable capture in case of multiple queues. (#46) --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index bc9077f..e1b3f58 100644 --- a/server.go +++ b/server.go @@ -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")