From 07afd157314859021d38655a24cf41664948da16 Mon Sep 17 00:00:00 2001 From: dirkmc Date: Fri, 10 Sep 2021 06:31:23 +0200 Subject: [PATCH] fix: spurious warn log (#210) Co-authored-by: Aarsh Shah --- requestmanager/requestmanager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/requestmanager/requestmanager.go b/requestmanager/requestmanager.go index ec17a4a1..3cc6bc4c 100644 --- a/requestmanager/requestmanager.go +++ b/requestmanager/requestmanager.go @@ -287,7 +287,9 @@ func (rm *RequestManager) ProcessResponses(p peer.ID, responses []gsmsg.GraphSyn blks []blocks.Block) { response := make(chan error, 1) err := rm.sendSyncMessage(&processResponseMessage{p, responses, blks, response}, response, nil) - log.Warningf("ProcessResponses: %s", err) + if err != nil { + log.Warnf("ProcessResponses: %s", err) + } } type unpauseRequestMessage struct {