From 74092c13712e4d09d57d2431d5eebd53dbce0578 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Thu, 19 Dec 2019 16:26:37 +0800 Subject: [PATCH] Apply PR feedback: update error msg --- libp2p/pubsub/gossipsub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/pubsub/gossipsub.py b/libp2p/pubsub/gossipsub.py index 8097f70..2c0f780 100644 --- a/libp2p/pubsub/gossipsub.py +++ b/libp2p/pubsub/gossipsub.py @@ -588,7 +588,7 @@ class GossipSub(IPubsubRouter): # 3) Get the stream to this peer if sender_peer_id not in self.pubsub.peers: logger.debug( - "Fail to responed to iwant request from %s: peer disconnected", + "Fail to responed to iwant request from %s: peer record not exist", sender_peer_id, ) return @@ -700,7 +700,7 @@ class GossipSub(IPubsubRouter): # Get stream for peer from pubsub if to_peer not in self.pubsub.peers: logger.debug( - "Fail to emit control message to %s: peer disconnected", to_peer + "Fail to emit control message to %s: peer record not exist", to_peer ) return peer_stream = self.pubsub.peers[to_peer]