feat: tweak durations in Redis gateway ratelimiter
This commit is contained in:
parent
db3d436ef5
commit
426d753827
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user