Skip to content

Commit

Permalink
last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillKurdyukov committed Aug 15, 2024
1 parent 0e9a377 commit 1e8aa80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slo/src/Internal/SloContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public async Task Run(RunConfig runConfig)
}
catch (Exception e)
{
_logger.LogError(e, "Failed waiting read / write tasks");
_logger.LogInformation(e, "Cancel shooting");
}

await prometheus.StopAsync();
Expand Down Expand Up @@ -167,7 +167,7 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string jobName,
using var lease = await rateLimitPolicy
.AcquireAsync(cancellationToken: cancellationTokenSource.Token);
if (lease.IsAcquired)
if (!lease.IsAcquired)
{
continue;
}
Expand Down

0 comments on commit 1e8aa80

Please sign in to comment.