aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 12:18:52 +0100
committertv <tv@krebsco.de>2026-10-31 12:18:52 +0100
commit8d0dc5de241882fac9f8b821d758b038ba1ebd7a (patch)
tree6fab63f6a088e06c75c68ef083f5c863e8c913de /src/transport/mod.rs
parent6c48039bbbc2c6bd564237920fd58d20d8bcde76 (diff)
links replies carry clock offsets
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 1ce4cd1..048fe31 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -442,6 +442,9 @@ pub(crate) struct Link {
/// The peer's other transports (`swarm::links::MAX_OTHERS` at most): where else
/// it proved itself, those paths up.
pub(crate) others: Vec<OtherPath>,
+ /// How far the peer's clock is ahead of the member's (`paths::ClockOffset`), if
+ /// measured: with every member's, a map of the swarm shows whose clock is off.
+ pub(crate) clock: Option<paths::ClockOffset>,
}
/// A transport of a link besides the one in use, in a LINKS_REPLY.