diff options
| author | tv <tv@krebsco.de> | 2026-10-31 05:27:08 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 05:27:08 +0100 |
| commit | 794109b1500e9533014b7c1458460d007d1de260 (patch) | |
| tree | 31f8dd027601bd6e0602075c07020aa065fcc02f /src/simtest | |
| parent | 3de2af786cee9d6841bc12c0e46c1d9c6a1c5024 (diff) | |
move DELIVERY_LIMIT to sim transport
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 3c73bee..f191946 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -33,7 +33,7 @@ use crate::node::{self, Node, NodeConfig}; use crate::state::{AppState, PeerState, Timing}; use crate::swarm::bootstrap::{self, Start}; use crate::transport::identity::IdentityConfig; -use crate::transport::sim::SimNet; +use crate::transport::sim::{DELIVERY_LIMIT, SimNet}; /// Keepalive of simulated nodes: dormancy after 1 s, probes of dormant peers every /// 2.5 s (`Timing::new`). @@ -41,9 +41,6 @@ pub(crate) const KEEPALIVE: Duration = Duration::from_millis(250); /// First wait for a sync answer before sending again (10 s in production, where large /// messages take a while): a lost sync message costs a test 1 s, a heal 2 s. pub(crate) const SYNC_REPLY_TIMEOUT: Duration = Duration::from_secs(1); -/// How long the simulated net may take to deliver a message: well above its delays. -/// A catch-up source that stops sending sync messages is given up after this. -pub(crate) const DELIVERY_LIMIT: Duration = Duration::from_secs(3); /// How long tests wait for what should happen within a few keepalives: joining, /// registering, converging. pub(crate) const SOON: Duration = Duration::from_secs(10); |
