allow more time for download tasks in cachedfileprovider

This commit is contained in:
Stanley Dimant
2024-05-04 15:36:09 +02:00
parent 69b5dba901
commit 51be5ccd57

View File

@@ -187,7 +187,7 @@ public sealed class CachedFileProvider : IDisposable
try
{
using CancellationTokenSource cts = new();
cts.CancelAfter(TimeSpan.FromSeconds(15));
cts.CancelAfter(TimeSpan.FromSeconds(120));
_metrics.IncGauge(MetricsAPI.GaugeFilesTasksWaitingForDownloadFromCache);
await downloadTask.WaitAsync(cts.Token).ConfigureAwait(false);
}