Skip to content

Commit

Permalink
Hotfix timeout set to ms instead of secs (#5102)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Mikulski <[email protected]>
  • Loading branch information
pmnoxx and pmnoxx authored Nov 1, 2021
1 parent 1cb995f commit af64bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/network/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const ROUND_ROBIN_NONCE_CACHE_SIZE: usize = 10_000;
/// Routing table will clean edges if there is at least one node that is not reachable
/// since `SAVE_PEERS_MAX_TIME` seconds. All peers disconnected since `SAVE_PEERS_AFTER_TIME`
/// seconds will be removed from cache and persisted in disk.
pub const SAVE_PEERS_MAX_TIME: Duration = Duration::from_millis(7_200);
pub const SAVE_PEERS_AFTER_TIME: Duration = Duration::from_millis(3_600);
pub const SAVE_PEERS_MAX_TIME: Duration = Duration::from_secs(7_200);
pub const SAVE_PEERS_AFTER_TIME: Duration = Duration::from_secs(3_600);
/// Graph implementation supports up to 128 peers.
pub const MAX_NUM_PEERS: usize = 128;

Expand Down

0 comments on commit af64bfb

Please sign in to comment.