mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
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:
@@ -413,7 +413,8 @@ impl Context {
|
|||||||
.is_some()
|
.is_some()
|
||||||
{
|
{
|
||||||
let mut lock = self.ratelimit.write().await;
|
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;
|
self.scheduler.start(self.clone()).await;
|
||||||
|
|||||||
Reference in New Issue
Block a user