From 7c4c980409b9ea41f45a27f011744c25f404a3b6 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 15 Nov 2023 22:06:55 +0100 Subject: [PATCH] for testrun.org subdomains we can allow 60 messages per minute (or lift the limit completely but maybe good to protect against wild-running bots or so) --- src/context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/context.rs b/src/context.rs index 1e04c618b..1ca193d90 100644 --- a/src/context.rs +++ b/src/context.rs @@ -413,7 +413,8 @@ impl Context { .is_some() { let mut lock = self.ratelimit.write().await; - *lock = Ratelimit::new(Duration::new(40, 0), 6.0); + // Allow at least 1 message every second + a burst of 3. + *lock = Ratelimit::new(Duration::new(3, 0), 3.0); } } self.scheduler.start(self.clone()).await;