Silence Kademlia InboundRequestServed event (#9797)

Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com>
This commit is contained in:
Pierre Krieger
2021-09-21 16:59:57 +02:00
committed by GitHub
parent eca9af1a0a
commit 94635218af
+4 -3
View File
@@ -733,7 +733,8 @@ impl NetworkBehaviour for DiscoveryBehaviour {
let ev = DiscoveryOut::Discovered(peer);
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev))
},
KademliaEvent::PendingRoutablePeer { .. } => {
KademliaEvent::PendingRoutablePeer { .. } |
KademliaEvent::InboundRequestServed { .. } => {
// We are not interested in this event at the moment.
},
KademliaEvent::OutboundQueryCompleted {
@@ -844,8 +845,8 @@ impl NetworkBehaviour for DiscoveryBehaviour {
),
},
// We never start any other type of query.
e => {
debug!(target: "sub-libp2p", "Libp2p => Unhandled Kademlia event: {:?}", e)
KademliaEvent::OutboundQueryCompleted { result: e, .. } => {
warn!(target: "sub-libp2p", "Libp2p => Unhandled Kademlia event: {:?}", e)
},
},
NetworkBehaviourAction::DialAddress { address } =>