mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: tweak durations in Redis gateway ratelimiter
This commit is contained in:
parent
db3d436ef5
commit
426d753827
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ public class RedisRatelimiter: IGatewayRatelimiter
|
|||
private int _concurrency { get; init; }
|
||||
|
||||
// todo: these might need to be tweaked a little
|
||||
private static TimeSpan expiry = TimeSpan.FromSeconds(5);
|
||||
private static TimeSpan retryInterval = TimeSpan.FromSeconds(1);
|
||||
private static TimeSpan expiry = TimeSpan.FromSeconds(6);
|
||||
private static TimeSpan retryInterval = TimeSpan.FromMilliseconds(500);
|
||||
|
||||
public RedisRatelimiter(ILogger logger, ConnectionMultiplexer redis, int concurrency)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue