diff --git a/src/RedisRateLimiting/FixedWindow/RedisFixedWindowRateLimiter.cs b/src/RedisRateLimiting/FixedWindow/RedisFixedWindowRateLimiter.cs index 727643a..efc9841 100644 --- a/src/RedisRateLimiting/FixedWindow/RedisFixedWindowRateLimiter.cs +++ b/src/RedisRateLimiting/FixedWindow/RedisFixedWindowRateLimiter.cs @@ -78,7 +78,7 @@ private async ValueTask AcquireAsyncCoreInternal() leaseContext.Count = response.Count; leaseContext.RetryAfter = response.RetryAfter; - leaseContext.ExpiresAt = DateTimeOffset.FromUnixTimeSeconds(response.ExpiresAt); + leaseContext.ExpiresAt = response.ExpiresAt; if (leaseContext.Count > _options.PermitLimit) { @@ -98,7 +98,7 @@ private sealed class FixedWindowLeaseContext public TimeSpan? RetryAfter { get; set; } - public DateTimeOffset? ExpiresAt { get; set; } + public long? ExpiresAt { get; set; } } private sealed class FixedWindowLease : RateLimitLease