summaryrefslogtreecommitdiffstats
path: root/src/swarm/pair.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 03:07:30 +0100
committertv <tv@krebsco.de>2026-10-28 03:07:30 +0100
commitbecffeb2c78b0e2e17eabf5060de2f2056710ff1 (patch)
treea391ef741a382dbebc02156b3a89e29818ef7544 /src/swarm/pair.rs
parentb88be3ea1b475b1a656298b98708026388eaf2af (diff)
keepalive takes turns
Diffstat (limited to 'src/swarm/pair.rs')
-rw-r--r--src/swarm/pair.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/pair.rs b/src/swarm/pair.rs
index 41fc219..0d45b32 100644
--- a/src/swarm/pair.rs
+++ b/src/swarm/pair.rs
@@ -1,5 +1,5 @@
-//! Which side of a pair of nodes leads, for duties only one side needs to do (sending
-//! keepalive STATUSes).
+//! Which side of a pair of nodes leads, for what one side needs to start (the first
+//! keepalive; then the two take turns, `PeerState::take_keepalive_due`).
//!
//! Both sides decide on their own, from the two keys alone, and agree. The leader is
//! chosen per pair by one bit of a hash of both keys, not by comparing the keys: a