summaryrefslogtreecommitdiffstats
path: root/src/state/peer.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 14:03:53 +0100
committertv <tv@krebsco.de>2026-10-28 14:03:53 +0100
commit2c0416d53a17400e3c796a6a1e4e196aa5318c56 (patch)
treedc06bcaa8045b8e1f6399c5ef277fa8d4908e91b /src/state/peer.rs
parenta5a27eb4699fc5c3fa9fbcc5886f06b88e068bfd (diff)
add support for renaming IDs in the logger
Diffstat (limited to 'src/state/peer.rs')
-rw-r--r--src/state/peer.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs
index 9f2da0f..923c6d2 100644
--- a/src/state/peer.rs
+++ b/src/state/peer.rs
@@ -444,7 +444,10 @@ mod tests {
let timing = Timing::from_keepalive(Duration::from_secs(60), Duration::from_secs(300));
let mut heard = PeerState::new(true, &timing);
assert_eq!(heard.liveness, Liveness::Unknown);
- assert!(!heard.mark_seen(heard.added_at), "no re-handshake: none yet");
+ assert!(
+ !heard.mark_seen(heard.added_at),
+ "no re-handshake: none yet"
+ );
assert_eq!(heard.liveness, Liveness::Active);
let mut silent = PeerState::new(true, &timing);
assert!(silent.check_dormancy(&timing, silent.added_at + timing.dormant_after));