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
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -12,8 +12,8 @@ public class RedisRatelimiter: IGatewayRatelimiter
private int _concurrency { get; init; } private int _concurrency { get; init; }
// todo: these might need to be tweaked a little // todo: these might need to be tweaked a little
private static TimeSpan expiry = TimeSpan.FromSeconds(5); private static TimeSpan expiry = TimeSpan.FromSeconds(6);
private static TimeSpan retryInterval = TimeSpan.FromSeconds(1); private static TimeSpan retryInterval = TimeSpan.FromMilliseconds(500);
public RedisRatelimiter(ILogger logger, ConnectionMultiplexer redis, int concurrency) public RedisRatelimiter(ILogger logger, ConnectionMultiplexer redis, int concurrency)
{ {