Skip to content

Commit

Permalink
fix(bitswap/client/providerquerymanager): use non-timed out context f…
Browse files Browse the repository at this point in the history
…or tracing (#721)
  • Loading branch information
aschmahmann authored Nov 19, 2024
1 parent 5929aca commit 13d0b32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (pqm *ProviderQueryManager) findProviderWorker() {
span.AddEvent("ConnectedToProvider", trace.WithAttributes(attribute.Stringer("peer", p)))
select {
case pqm.providerQueryMessages <- &receivedProviderMessage{
ctx: findProviderCtx,
ctx: fpr.ctx,
k: k,
p: p,
}:
Expand All @@ -274,7 +274,7 @@ func (pqm *ProviderQueryManager) findProviderWorker() {
cancel()
select {
case pqm.providerQueryMessages <- &finishedProviderQueryMessage{
ctx: findProviderCtx,
ctx: fpr.ctx,
k: k,
}:
case <-pqm.ctx.Done():
Expand Down

0 comments on commit 13d0b32

Please sign in to comment.