mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-01-13 16:45:18 +00:00
Compare commits
2 Commits
90724bf957
...
f4abbe2499
Author | SHA1 | Date | |
---|---|---|---|
|
f4abbe2499 | ||
|
3fd800275a |
@ -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(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
|
||||
.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
|
||||
.build()
|
||||
.expect("The total rate limit has been specified"),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user