Skip to content

Commit

Permalink
Change type of StatsRateLimitKey
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilSlusarczykDotDigital committed Apr 18, 2023
1 parent 8cbffc2 commit f1ae6c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class RedisSlidingWindowManager
private readonly IConnectionMultiplexer _connectionMultiplexer;
private readonly RedisSlidingWindowRateLimiterOptions _options;
private readonly RedisKey RateLimitKey;
private readonly string StatsRateLimitKey;
private readonly RedisKey StatsRateLimitKey;

private static readonly LuaScript _redisScript = LuaScript.Prepare(
@"local limit = tonumber(@permit_limit)
Expand Down Expand Up @@ -54,7 +54,7 @@ public RedisSlidingWindowManager(
_connectionMultiplexer = options.ConnectionMultiplexerFactory!.Invoke();

RateLimitKey = new RedisKey($"rl:{{{partitionKey}}}");
StatsRateLimitKey = $"rl:{partitionKey}:stats";
StatsRateLimitKey = new RedisKey($"rl:{{{partitionKey}}}:stats");
}

internal async Task<RedisSlidingWindowResponse> TryAcquireLeaseAsync(string requestId)
Expand Down

0 comments on commit f1ae6c1

Please sign in to comment.