Skip to content

Commit

Permalink
fix pingp2p error
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 27, 2024
1 parent bef0a12 commit 1d79cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rbdeal/sp_crawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (r *ribs) spCrawlLoop(ctx context.Context, gw api.Gateway, pingP2P host.Hos
defer stlk.Unlock()

if err != nil {
log.Debugw("error querying provider", "actor", actor, "err", err)
log.Errorw("error querying provider", "actor", actor, "err", err)
}

if err := r.db.UpdateProviderProtocols(actor, res); err != nil {
Expand All @@ -229,7 +229,7 @@ func (r *ribs) spCrawlLoop(ctx context.Context, gw api.Gateway, pingP2P host.Hos
return
}

if err := pingP2P.Connect(ctx, *libp2pPi); err != nil {
if err = pingP2P.Connect(ctx, *libp2pPi); err != nil {
return
}

Expand Down

0 comments on commit 1d79cfa

Please sign in to comment.