Skip to content

Commit 11210c2

Browse files
committed
update core services
1 parent d633d42 commit 11210c2

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

src/Throttlr.Api.RateLimit/Core/RateLimitResult.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace RateLimit.Throttlr.Core
44
{
5+
/// <summary>
6+
/// Represents the result of a rate limit check.
7+
/// </summary>
58
public sealed class RateLimitResult
6-
{
7-
/// <summary>
8-
/// Represents the result of a rate limit check.
9-
/// </summary>
9+
{
1010
private RateLimitResult(bool isAllowed, int? retryAfterSeconds = null)
1111
{
1212
IsAllowed = isAllowed;

src/Throttlr.Api.RateLimit/Core/SlidingWindowRateLimiter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ internal class SlidingWindowRateLimiter : IRateLimiter
1818
private readonly ISystemClock _clock;
1919
private readonly RateLimitPolicy _policy;
2020

21-
/// <summary>
22-
/// Initializes a new instance of the <see cref="SlidingWindowRateLimiter"/> class.
23-
/// </summary>
2421
public SlidingWindowRateLimiter(
2522
IRateLimitStore store,
2623
ISystemClock clock,
@@ -31,7 +28,6 @@ public SlidingWindowRateLimiter(
3128
_policy = policy ?? throw new ArgumentNullException(nameof(policy));
3229
}
3330

34-
/// <inheritdoc />
3531
/// <inheritdoc />
3632
public async Task<RateLimitResult> ShouldLimitAsync(
3733
string key,

src/Throttlr.Api.RateLimit/Core/SystemClock.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
namespace RateLimit.Throttlr.Core
77
{
8-
/// <summary>
9-
/// Default implementation of <see cref="ISystemClock"/> that uses <see cref="DateTimeOffset.UtcNow"/>.
10-
/// </summary>
118
public sealed class SystemClock : ISystemClock
129
{
1310
/// <inheritdoc />

0 commit comments

Comments
 (0)