From 2709987808b2eeaf1302359ebec883ef4bca55ae Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 23 Sep 2025 18:26:44 -0500 Subject: revert change to OptimisticRelayFileInfo --- src/slskd/Core/Options.cs | 6 +++--- src/slskd/Transfers/Uploads/UploadService.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 376d58a6..4d4c1e68 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -457,10 +457,10 @@ namespace slskd /// Gets a value indicating whether to use the uploaded shares from Relay agents as the source of /// truth for file existence and size, instead of querying the agent prior to enqueueing the file. /// - [Argument(default, "pessimistic-relay-file-info")] - [EnvironmentVariable("PESSIMISTIC_RELAY_FILE_INFO")] + [Argument(default, "optimistic-relay-file-info")] + [EnvironmentVariable("OPTIMISTIC_RELAY_FILE_INFO")] [Description("use uploaded relay shares as source of truth for file existence and size")] - public bool PessimisticRelayFileInfo { get; init; } = false; + public bool OptimisticRelayFileInfo { get; init; } = false; } /// diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs index 99e8bdba..6e6e7ee7 100644 --- a/src/slskd/Transfers/Uploads/UploadService.cs +++ b/src/slskd/Transfers/Uploads/UploadService.cs @@ -904,7 +904,7 @@ namespace slskd.Transfers.Uploads length = info.Length; } - else if (OptionsMonitor.CurrentValue.Flags.PessimisticRelayFileInfo) + else if (!OptionsMonitor.CurrentValue.Flags.OptimisticRelayFileInfo) { /* if the file is hosted on a relay agent and the user has set the pessimistic flag to true, -- cgit v1.2.3