Skip to content

Commit

Permalink
fix: build was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Podkolzin committed Aug 7, 2023
1 parent 4f1d6d8 commit 7bc5659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/QueryPressure.Metrics.App/ErrorRateLiveMetricProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public IEnumerable<IMetric> GetMetrics()
yield return new SimpleMetric("live-error-rate", _errorRate.GetCallsPerTimeWindow());
yield return new SimpleMetric("live-error-count", _errorCount);
}

public Task<IEnumerable<IMetric>> CalculateAsync(IExecutionResultStore store, CancellationToken cancellationToken)
{
var result = new[] { new SimpleMetric("live-error-count", _errorCount) };
var result = new[] { new SimpleMetric("live-error-count", _errorCount) };
return Task.FromResult<IEnumerable<IMetric>>(result);
}
}
2 changes: 0 additions & 2 deletions src/QueryPressure.UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
api.MapPost("/execution", (ExecutionRequest request, ProviderManager manager, CancellationToken cancellationToken) =>
manager.GetProvider(request.Provider).StartExecutionAsync(request, cancellationToken));

api.MapGet("/execution", (ProviderManager manager, CancellationToken cancellationToken) => manager.GetExecutions());

api.MapPost("/execution/{executionId:guid}/cancel", (Guid executionId, ProviderManager manager) => manager.CancelExecution(executionId));

api.MapGet("/resources/{locale}", (IResourceManager manager, string locale) =>
Expand Down

0 comments on commit 7bc5659

Please sign in to comment.