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 | 26d7002f534c0076e36627ad36ba25df2d80015f (patch) | |
| tree | 03d47a4227e591509ec2579be12b7f92320ac4d0 /src/simtest/timing.rs | |
| parent | 4a42f2791292104059fc5daf9c9fddc5d9b249d3 (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); |
