hopr_transport_p2p/
constants.rs

1/// Connection idle timeout for all protocols used in the swarm.
2pub const HOPR_SWARM_IDLE_CONNECTION_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(300); // 5 minutes
3
4// Swarm configuration
5/// The maximum number of concurrently dialed (outbound) peers.
6pub(crate) const HOPR_SWARM_CONCURRENTLY_DIALED_PEER_COUNT: u8 = 255;
7/// The maximum number of concurrently negotiating inbound peers.
8pub(crate) const HOPR_SWARM_CONCURRENTLY_NEGOTIATING_INBOUND_PEER_COUNT: usize = 512;