From 654e5b4df00b7544f6f5f94592c15668ec509112 Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Wed, 10 Jun 2020 16:51:02 -0400 Subject: [PATCH] fix: log error for unexpected reverse index mismatch --- internal/peermanager/peerwantmanager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/peermanager/peerwantmanager.go b/internal/peermanager/peerwantmanager.go index fc852d31..46a3ac34 100644 --- a/internal/peermanager/peerwantmanager.go +++ b/internal/peermanager/peerwantmanager.go @@ -360,6 +360,7 @@ func (pwm *peerWantManager) wantPeerCounts(c cid.Cid) wantPeerCnts { for p := range pwm.wantPeers[c] { pws, ok := pwm.peerWants[p] if !ok { + log.Errorf("reverse index has extra peer %s for key %s in peerWantManager", string(p), c) continue }