feat: tweak durations in Redis gateway ratelimiter

This commit is contained in:
spiral
2022-01-19 18:01:42 -05:00
parent db3d436ef5
commit 426d753827

View File

@@ -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)
{