diff options
| author | tv <tv@krebsco.de> | 2026-11-03 02:43:15 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-03 02:43:15 +0100 |
| commit | 5cd26d321b706113afb8431aba35ab8fb32281c4 (patch) | |
| tree | ae1a64479a29182c44a2375417f74583e4ee074a /src/transport/mod.rs | |
| parent | e4709cc6ab3fca7f7ce40793aa5cceb64f0bfea3 (diff) | |
announcements answered only if heads differ
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index b8b57af..25f9b7c 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -202,6 +202,10 @@ pub(crate) struct Status { /// The sender is shutting down: its farewell (`keepalive::farewell`). The /// recipient holds it dormant at once, rather than after `dormant_after` of silence. pub(crate) leaving: bool, + /// The sender announces new heads (`swarm::relay`), rather than keeping alive: a + /// STATUS answered only if the recipient's heads differ. Most announcements reach a + /// neighbour that has the changes already, which has nothing to tell. + pub(crate) announcing: bool, } /// Cheap to clone: large parts are shared (`bytes::Bytes`). |
