aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-09-23 18:26:44 -0500
committerJP Dillingham <jp@dillingham.me>2025-09-23 18:26:44 -0500
commit2709987808b2eeaf1302359ebec883ef4bca55ae (patch)
treed9fe1a027a9fc69a52976fadfa7907b1e3adb55c
parent83360da8022b8eb4987649cba6e0204ed51bcb54 (diff)
downloadslskd-2709987808b2eeaf1302359ebec883ef4bca55ae.tar.gz
revert change to OptimisticRelayFileInfo
-rw-r--r--src/slskd/Core/Options.cs6
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs2
2 files changed, 4 insertions, 4 deletions
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.
/// </summary>
- [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;
}
/// <summary>
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,