Compare commits

..

1 Commits

Author SHA1 Message Date
0g-peterzhb
90724bf957
Merge b352184dc6 into baf0521c99 2024-11-06 14:02:21 +08:00

View File

@ -157,8 +157,8 @@ impl Default for Config {
let filter_rate_limiter = Some(
discv5::RateLimiterBuilder::new()
.total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
.ip_n_every(9, Duration::from_secs(1)) // Allow bursts, average 9 per second
.node_n_every(8, Duration::from_secs(1)) // Allow bursts, average 8 per second
.ip_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
.node_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
.build()
.expect("The total rate limit has been specified"),
);