mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 01:01:04 +00:00
Silence Kademlia InboundRequestServed event (#9797)
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com>
This commit is contained in:
@@ -733,7 +733,8 @@ impl NetworkBehaviour for DiscoveryBehaviour {
|
|||||||
let ev = DiscoveryOut::Discovered(peer);
|
let ev = DiscoveryOut::Discovered(peer);
|
||||||
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev))
|
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev))
|
||||||
},
|
},
|
||||||
KademliaEvent::PendingRoutablePeer { .. } => {
|
KademliaEvent::PendingRoutablePeer { .. } |
|
||||||
|
KademliaEvent::InboundRequestServed { .. } => {
|
||||||
// We are not interested in this event at the moment.
|
// We are not interested in this event at the moment.
|
||||||
},
|
},
|
||||||
KademliaEvent::OutboundQueryCompleted {
|
KademliaEvent::OutboundQueryCompleted {
|
||||||
@@ -844,8 +845,8 @@ impl NetworkBehaviour for DiscoveryBehaviour {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
// We never start any other type of query.
|
// We never start any other type of query.
|
||||||
e => {
|
KademliaEvent::OutboundQueryCompleted { result: e, .. } => {
|
||||||
debug!(target: "sub-libp2p", "Libp2p => Unhandled Kademlia event: {:?}", e)
|
warn!(target: "sub-libp2p", "Libp2p => Unhandled Kademlia event: {:?}", e)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
NetworkBehaviourAction::DialAddress { address } =>
|
NetworkBehaviourAction::DialAddress { address } =>
|
||||||
|
|||||||
Reference in New Issue
Block a user