mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 22:27:56 +00:00
Log the clogging networking messages (#1532)
This commit is contained in:
@@ -401,8 +401,9 @@ fn run_thread<B: BlockT + 'static, S: NetworkSpecialization<B>, H: ExHashT>(
|
||||
NetworkServiceEvent::CustomMessage { node_index, data, .. } => {
|
||||
protocol.handle_packet(&mut net_sync, node_index, &data);
|
||||
}
|
||||
NetworkServiceEvent::Clogged { node_index, .. } => {
|
||||
protocol.on_clogged_peer(&mut net_sync, node_index);
|
||||
NetworkServiceEvent::Clogged { node_index, messages, .. } => {
|
||||
protocol.on_clogged_peer(&mut net_sync, node_index,
|
||||
messages.iter().map(|d| d.as_ref()));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user