From 2b4359f23d20b14bae1896512f678d02b7f3c34c Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 03:25:00 +0100 Subject: introduce eager links --- src/transport/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 25f9b7c..7f1aa98 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -206,6 +206,10 @@ pub(crate) struct Status { /// 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, + /// The sender wants the recipient's changes as soon as the recipient applies them, + /// sent as sync messages (an eager link, `swarm::relay`), not only announced. Every + /// STATUS says so, or not, again: one lost changes nothing for long. + pub(crate) eager: bool, } /// Cheap to clone: large parts are shared (`bytes::Bytes`). -- cgit v1.3.1