From 4ffbc36abf699452153558bbcd6e724dca092ee9 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Thu, 22 May 2025 15:29:10 +0200 Subject: [PATCH] IAsyncEnumerable was being chained incorrectly --- Duplicati/Library/Main/Operation/BackupHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Main/Operation/BackupHandler.cs b/Duplicati/Library/Main/Operation/BackupHandler.cs index 12424efd5..565fb5a28 100644 --- a/Duplicati/Library/Main/Operation/BackupHandler.cs +++ b/Duplicati/Library/Main/Operation/BackupHandler.cs @@ -541,10 +541,10 @@ namespace Duplicati.Library.Main.Operation await backendManager.WaitForEmptyAsync(m_database, m_taskReader.ProgressToken); // Calculate the number of samples to test, using the largest number of file of a given type - long remoteVolumeCount = await await m_database.GetRemoteVolumes() + long remoteVolumeCount = await m_database.GetRemoteVolumes() .Where(x => x.State == RemoteVolumeState.Verified) .GroupBy(x => x.Type) - .Select(async x => await x.LongCountAsync()) + .SelectAwait(async x => await x.LongCountAsync()) .MaxAsync(); long samplesToTest = Math.Max(m_options.BackupTestSampleCount, (long)Math.Round(remoteVolumeCount * (m_options.BackupTestPercentage / 100m), MidpointRounding.AwayFromZero));