Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Evict inactive peers from SyncingEngine #13829

Merged
merged 7 commits into from
Apr 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use debug!()
  • Loading branch information
altonen committed Apr 14, 2023
commit 734c4f1d9ae5960df5468ed852ad43a3155d4198
2 changes: 1 addition & 1 deletion client/network/sync/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ where
peer.last_notification_sent.elapsed() > INACTIVITY_EVICT_THRESHOLD;

if last_received_late && last_sent_late {
log::error!(target: "sync", "evict peer {id} since it has been idling for too long");
log::debug!(target: "sync", "evict peer {id} since it has been idling for too long");
self.network_service.report_peer(*id, rep::INACTIVE_SUBSTREAM);
self.network_service
.disconnect_peer(*id, self.block_announce_protocol_name.clone());
Expand Down