diff options
| author | tv <tv@krebsco.de> | 2026-10-25 22:21:06 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 22:21:06 +0100 |
| commit | cd9f068270e2258c571bbc01465fcf39f054848b (patch) | |
| tree | 2f7656d83738f2e199d20110fb710e9b26015844 /src/node.rs | |
| parent | 34989e5140eaa16e17a0ab4501e64e779215e3d1 (diff) | |
make sync reply timeout part of timing
This enables upcoming lossy-links tests.
Diffstat (limited to 'src/node.rs')
| -rw-r--r-- | src/node.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node.rs b/src/node.rs index 82b99fc..8a49c56 100644 --- a/src/node.rs +++ b/src/node.rs @@ -33,7 +33,8 @@ pub(crate) struct NodeConfig { pub(crate) initial_doc: AutoCommit, /// Actors this node wrote with in earlier runs (`--document-file`). pub(crate) earlier_actors: Vec<ActorId>, - pub(crate) keepalive: Duration, + /// `Timing::from_keepalive(--keepalive)`. + pub(crate) timing: Timing, pub(crate) neighbours_k: usize, pub(crate) alias: Option<String>, pub(crate) electorate_window: Duration, @@ -89,7 +90,7 @@ impl Node { change_tx, initial_sync_done: Arc::new(AtomicBool::new(false)), change_events, - timing: Timing::from_keepalive(config.keepalive), + timing: config.timing, remake: Arc::new(remake::RemakeState::default()), swarm_key: config.swarm_key, run_id: uuid::Uuid::new_v4().into_bytes(), |
