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)

This commit is contained in:
holger krekel
2023-11-15 22:06:55 +01:00
committed by link2xt
parent b8ad3ec1b1
commit 7c4c980409

View File

@@ -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;