Skip to content

Commit

Permalink
fix bitswap client use of pqm
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jul 26, 2024
1 parent 4b51529 commit 092f07a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bitswap/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ func New(parent context.Context, network bsnet.BitSwapNetwork, bstore blockstore
var provFinder bssession.ProviderFinder
var defaultQueryManager *rpqm.ProviderQueryManager
if bs.useDefaultLookupManagement {
defaultQueryManager = rpqm.New(ctx, network)
var err error
defaultQueryManager, err = rpqm.New(ctx, network)
if err != nil {
// Should not be possible to hit this
panic(err)
}
provFinder = defaultQueryManager
} else {
provFinder = &bssession.FindAllProviders{network}
Expand Down

0 comments on commit 092f07a

Please sign in to comment.