From 1d79cfad1db48d13aca3a9670aba54b17cf2792f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 27 Nov 2024 13:14:27 +0100 Subject: [PATCH] fix pingp2p error --- rbdeal/sp_crawl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rbdeal/sp_crawl.go b/rbdeal/sp_crawl.go index 95fd53e..e9d558a 100644 --- a/rbdeal/sp_crawl.go +++ b/rbdeal/sp_crawl.go @@ -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 { @@ -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 }