Skip to content

Commit 4c0232a

Browse files
authored
fix(pubsub): check for nil concurrency control span (#14303)
Same as #14302 but committed separately to get proper release tooling.
1 parent c590c35 commit 4c0232a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pubsub/subscription.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ func (s *Subscription) Receive(ctx context.Context, f func(context.Context, *Mes
14511451
// Return nil if the context is done, not err.
14521452
return nil
14531453
}
1454-
if iter.enableTracing {
1454+
if iter.enableTracing && ccSpan != nil {
14551455
ccSpan.End()
14561456
}
14571457

0 commit comments

Comments
 (0)