Skip to content

Commit

Permalink
fixed stupid double request bug from bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPallister committed Jun 25, 2017
1 parent b85474b commit 26e7621
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/Ocelot/RateLimit/Middleware/ClientRateLimitMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public async Task Invoke(HttpContext context)
if (!DownstreamRoute.ReRoute.EnableEndpointEndpointRateLimiting)
{
_logger.LogDebug($"EndpointRateLimiting is not enabled for {DownstreamRoute.ReRoute.DownstreamPathTemplate}");
await _next.Invoke(context);

await _next.Invoke(context);
return;
}
Expand All @@ -48,8 +46,6 @@ public async Task Invoke(HttpContext context)
if (IsWhitelisted(identity, options))
{
_logger.LogDebug($"{DownstreamRoute.ReRoute.DownstreamPathTemplate} is white listed from rate limiting");
await _next.Invoke(context);

await _next.Invoke(context);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion test/Ocelot.ManualTest/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Logging": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Information",
"Default": "Trace",
"System": "Information",
"Microsoft": "Information"
}
Expand Down

0 comments on commit 26e7621

Please sign in to comment.