Skip to content

Commit

Permalink
fix(providerquerymanager): use find providers async context
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward authored and Jorropo committed Nov 28, 2023
1 parent fe55533 commit add7775
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ func (npqm *newProvideQueryMessage) debugMessage() string {
func (npqm *newProvideQueryMessage) handle(pqm *ProviderQueryManager) {
requestStatus, ok := pqm.inProgressRequestStatuses[npqm.k]
if !ok {

ctx, cancelFn := context.WithCancel(pqm.ctx)
// used the passed in context to FindProvidersAsync for this call
ctx, cancelFn := context.WithCancel(npqm.ctx)
requestStatus = &inProgressRequestStatus{
listeners: make(map[chan peer.ID]struct{}),
ctx: ctx,
Expand Down

0 comments on commit add7775

Please sign in to comment.