summaryrefslogtreecommitdiffstats
path: root/src/transport/mycelium.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 05:37:20 +0200
committertv <tv@krebsco.de>2026-10-24 05:38:29 +0200
commit8c7897b03cb35516b7542544541b98694b40bf6f (patch)
tree9654a13760050a17b297df6e12d7e2827401784a /src/transport/mycelium.rs
parent6d6962c5cad66d45ff3c1c5a97b405b40206138c (diff)
assess swarm stability
Diffstat (limited to 'src/transport/mycelium.rs')
-rw-r--r--src/transport/mycelium.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/mycelium.rs b/src/transport/mycelium.rs
index 51bbfab..9075ae8 100644
--- a/src/transport/mycelium.rs
+++ b/src/transport/mycelium.rs
@@ -892,6 +892,7 @@ pub struct HelloReplyShadow<'a> {
auth: ByteBuf,
ready: bool,
run_id: ByteBuf,
+ away_ms: Option<u64>,
}
#[derive(Serialize, Deserialize)]
@@ -972,6 +973,7 @@ pub fn hello_reply_to_bytes(msg: &HelloReply) -> Result<Vec<u8>, rmp_serde::enco
auth: ByteBuf::from(msg.auth.clone()),
ready: msg.ready,
run_id: ByteBuf::from(msg.run_id.to_vec()),
+ away_ms: msg.away_ms,
};
rmp_serde::to_vec(&shadow)
}
@@ -984,6 +986,7 @@ pub fn bytes_to_hello_reply(bytes: &[u8]) -> Result<HelloReply, TransportError>
auth: shadow.auth.into_vec(),
ready: shadow.ready,
run_id: run_id_from_shadow(&shadow.run_id)?,
+ away_ms: shadow.away_ms,
})
}