Skip to content

Commit 2b21fee

Browse files
committed
just a commit to not ban on unavailability for testing
1 parent 9bd5e53 commit 2b21fee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mm2src/mm2_main/src/lp_network.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,10 @@ mod sync_ban {
649649
PER_PEER_SYNC_BAN_GRACE.as_secs()
650650
);
651651

652-
set_ban_reason(peer, ban_reason_from_sync_failure(cause));
653-
temp_ban_peer(ctx, peer, Duration::from_secs(TEMP_BAN_DURATION_SECS));
652+
if matches!(cause, SyncFailureCause::InvalidOrIncomplete) {
653+
set_ban_reason(peer, ban_reason_from_sync_failure(cause));
654+
temp_ban_peer(ctx, peer, Duration::from_secs(TEMP_BAN_DURATION_SECS));
655+
}
654656
} else {
655657
let remaining = PER_PEER_SYNC_BAN_GRACE.as_secs().saturating_sub(elapsed.as_secs());
656658
log::warn!(

0 commit comments

Comments
 (0)