mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-01-29 16:25:17 +00:00
Compare commits
1 Commits
f4abbe2499
...
90724bf957
Author | SHA1 | Date | |
---|---|---|---|
|
90724bf957 |
@ -157,8 +157,8 @@ impl Default for Config {
|
|||||||
let filter_rate_limiter = Some(
|
let filter_rate_limiter = Some(
|
||||||
discv5::RateLimiterBuilder::new()
|
discv5::RateLimiterBuilder::new()
|
||||||
.total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
.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
|
.ip_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
||||||
.node_n_every(8, Duration::from_secs(1)) // Allow bursts, average 8 per second
|
.node_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
||||||
.build()
|
.build()
|
||||||
.expect("The total rate limit has been specified"),
|
.expect("The total rate limit has been specified"),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user