diff options
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`). |
