diff options
| author | tv <tv@krebsco.de> | 2026-10-31 06:53:00 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 06:53:00 +0100 |
| commit | d14ce65a9f30f31836a737a466c6086bda4ccbae (patch) | |
| tree | 8bcaf76599805d06980f5cf773b6a75326a963be /src/node.rs | |
| parent | 7feea90e195cec3e99d294fa518f9a9e4ebeebcb (diff) | |
add peer clock skew warning
Diffstat (limited to 'src/node.rs')
| -rw-r--r-- | src/node.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node.rs b/src/node.rs index 9f1bd6b..e70b205 100644 --- a/src/node.rs +++ b/src/node.rs @@ -45,6 +45,7 @@ pub(crate) struct NodeConfig { pub(crate) neighbours_k: usize, pub(crate) alias: Option<String>, pub(crate) electorate_window: Duration, + pub(crate) clock_skew_warn: Duration, pub(crate) blob_chunk_bytes: u32, pub(crate) swarm_key: Option<Arc<SwarmKey>>, pub(crate) protocol_writers: HashSet<String>, @@ -114,6 +115,8 @@ impl Node { neighbours_k: config.neighbours_k, alias: config.alias, electorate_window: config.electorate_window, + clock_skew_warn: config.clock_skew_warn, + clock_skew_warned: Default::default(), blobs: Arc::new(swarm::blob::Blobs::new(config.blob_chunk_bytes)), links: Default::default(), protocol_writers: Arc::new(config.protocol_writers), |
