From becffeb2c78b0e2e17eabf5060de2f2056710ff1 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 03:07:30 +0100 Subject: keepalive takes turns --- src/swarm/pair.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/swarm/pair.rs') 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 -- cgit v1.3.1