hopr_transport_network/constants.rs
1/// Interval to run heartbeat rounds, must include enough
2/// time to traverse NATs
3pub const DEFAULT_HEARTBEAT_INTERVAL: std::time::Duration = std::time::Duration::from_secs(60);
4
5/// Time after which the availability of a node gets rechecked
6pub const DEFAULT_HEARTBEAT_THRESHOLD: std::time::Duration = std::time::Duration::from_secs(60);
7
8/// Randomization of the heartbeat interval to make sure not
9/// all the nodes start their interval at the same time
10pub const DEFAULT_HEARTBEAT_INTERVAL_VARIANCE: std::time::Duration = std::time::Duration::from_secs(2);
11
12/// The maximum number of parallel probes the heartbeat performs
13pub const DEFAULT_MAX_PARALLEL_PINGS: usize = 25;