diff options
| author | tv <tv@krebsco.de> | 2026-10-31 05:26:27 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 05:26:27 +0100 |
| commit | 65e1b76ce1ae5e94c786b14bb97312266be7c5de (patch) | |
| tree | 2ce241d0915a73eca6029fbe76f3c37e909f2bd3 /src/simtest/timing.rs | |
| parent | 4ba4b4d218d4f9fc49cea01381d8931619114bbc (diff) | |
simtest: unify SOON constant
Diffstat (limited to 'src/simtest/timing.rs')
| -rw-r--r-- | src/simtest/timing.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/simtest/timing.rs b/src/simtest/timing.rs index 0f19313..fd76a17 100644 --- a/src/simtest/timing.rs +++ b/src/simtest/timing.rs @@ -5,15 +5,13 @@ use std::time::Duration; use serde_json::json; -use super::{Sim, has_neighbour, heads, peer, read, write}; +use super::{SOON, Sim, has_neighbour, heads, peer, read, write}; use crate::document::replica::Epoch; use crate::state::AppState; use crate::swarm::bootstrap::Start; use crate::transport::sim::LinkParams; use crate::transport::{HeadsSummary, HelloRequest, MessageKind, ParsedMessage, RunId, Status}; -/// Long enough for anything that should happen within a few keepalives. -const SOON: Duration = Duration::from_secs(10); /// With lost messages: several reply timeouts (1 s, doubling) and heals in a row. const LOSSY: Duration = Duration::from_secs(30); |
