mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 20:06:30 +03:00
increase ratelimit
we want to prevent runaway things, not restrict normal usage too much, this limit seems to be more reasonable also for most round-based games.
This commit is contained in:
@@ -193,7 +193,7 @@ impl Context {
|
|||||||
translated_stockstrings: RwLock::new(HashMap::new()),
|
translated_stockstrings: RwLock::new(HashMap::new()),
|
||||||
events,
|
events,
|
||||||
scheduler: RwLock::new(None),
|
scheduler: RwLock::new(None),
|
||||||
ratelimit: RwLock::new(Ratelimit::new(Duration::new(60, 0), 3.0)), // Allow to send 3 messages immediately, no more than once every 20 seconds.
|
ratelimit: RwLock::new(Ratelimit::new(Duration::new(60, 0), 6.0)), // Allow to send 6 messages immediately, no more than once every 10 seconds.
|
||||||
quota: RwLock::new(None),
|
quota: RwLock::new(None),
|
||||||
server_id: RwLock::new(None),
|
server_id: RwLock::new(None),
|
||||||
creation_time: std::time::SystemTime::now(),
|
creation_time: std::time::SystemTime::now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user