Skip to content

Commit

Permalink
fix: Update connectivity manager defaults (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Jun 30, 2021
2 parents 574ff8b + b89a67d commit 229830e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comms/dht/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Default for DhtConfig {
allow_test_addresses: false,
flood_ban_max_msg_count: 10000,
flood_ban_timespan: Duration::from_secs(100),
offline_peer_cooldown: Duration::from_secs(24 * 60 * 60),
offline_peer_cooldown: Duration::from_secs(2 * 60 * 60),
saf_msg_validity: Duration::from_secs(10800),
}
}
Expand Down
2 changes: 1 addition & 1 deletion comms/src/connectivity/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Default for ConnectivityConfig {
connection_pool_refresh_interval: Duration::from_secs(30),
reaper_min_inactive_age: Duration::from_secs(60),
is_connection_reaping_enabled: true,
max_failures_mark_offline: 1,
max_failures_mark_offline: 2,
connection_tie_break_linger: Duration::from_secs(2),
}
}
Expand Down

0 comments on commit 229830e

Please sign in to comment.