aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 05:38:20 +0100
committertv <tv@krebsco.de>2026-11-05 05:38:27 +0100
commit4e53e152f83ecb88fa162e0a18e6832df5a38fef (patch)
tree12e92bedfd0f081b8827f956d0d15c9e8837fb12 /src/transport/mod.rs
parentc1cb16be7894885ec5066dafc25b92f348ced11a (diff)
round trips in trees
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 85f69f5..e81adfb 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -210,6 +210,11 @@ pub(crate) struct Status {
/// of the members it has an active session with that answer, sorted. In keepalive STATUSes and
/// their replies, and when it changed; not in announcements of heads (None).
pub(crate) reaches: Option<Vec<u64>>,
+ /// The round trip to each member in `reaches`, in its order, as a bucket
+ /// (`swarm::rtt::bucket`): which of a member's possible parents in a writer's tree
+ /// is the faster (`swarm::tree`). With `reaches`; None otherwise.
+ #[serde(with = "serde_bytes")]
+ pub(crate) round_trips: Option<Vec<u8>>,
}
/// Cheap to clone: large parts are shared (`bytes::Bytes`).