From d3be4c34130bdac7d71a162002dfaa85c57416f8 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 24 Aug 2022 12:37:33 -1000 Subject: [PATCH] format rate limit code (#24) --- .../middleware/rate-limit/WebRateLimitAuth/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs b/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs index 71c9f48..5369323 100644 --- a/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs +++ b/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs @@ -345,7 +345,8 @@ app.UseRateLimiter(new RateLimiterOptions() new TokenBucketRateLimiterOptions(tokenLimit: myOptions.tokenLimit2, queueProcessingOrder: QueueProcessingOrder.OldestFirst, queueLimit: myOptions.queueLimit, - replenishmentPeriod: TimeSpan.FromSeconds(myOptions.replenishmentPeriod), + replenishmentPeriod: + TimeSpan.FromSeconds(myOptions.replenishmentPeriod), tokensPerPeriod: myOptions.tokensPerPeriod, autoReplenishment: myOptions.autoReplenishment)); } @@ -355,7 +356,8 @@ app.UseRateLimiter(new RateLimiterOptions() new TokenBucketRateLimiterOptions(tokenLimit: myOptions.tokenLimit, queueProcessingOrder: QueueProcessingOrder.OldestFirst, queueLimit: myOptions.queueLimit, - replenishmentPeriod: TimeSpan.FromSeconds(myOptions.replenishmentPeriod), + replenishmentPeriod: + TimeSpan.FromSeconds(myOptions.replenishmentPeriod), tokensPerPeriod: myOptions.tokensPerPeriod, autoReplenishment: true)); }