From b85a36934175f49d2cb26d43a07a72ff0368a709 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 5 Jul 2022 15:00:28 +0200 Subject: [PATCH] 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. --- src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.rs b/src/context.rs index cd727a36b..020f35b72 100644 --- a/src/context.rs +++ b/src/context.rs @@ -193,7 +193,7 @@ impl Context { translated_stockstrings: RwLock::new(HashMap::new()), events, 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), server_id: RwLock::new(None), creation_time: std::time::SystemTime::now(),