make storage size calculation asynchronous and running in parallel

This commit is contained in:
rootdarkarchon
2024-02-15 02:38:41 +01:00
parent 01e36f64ff
commit 549a93654a
11 changed files with 110 additions and 37 deletions

View File

@@ -78,7 +78,9 @@ public sealed class PerformanceCollectorService : IHostedService
public Task StartAsync(CancellationToken cancellationToken)
{
_logger.LogInformation("Starting PerformanceCollectorService");
_ = Task.Run(PeriodicLogPrune, _periodicLogPruneTask.Token);
_logger.LogInformation("Started PerformanceCollectorService");
return Task.CompletedTask;
}