diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-10-29 12:48:33 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-10-29 12:48:33 -0500 |
| commit | db0e593fa8ef8c945185c558e79382a7cdc31764 (patch) | |
| tree | 27b0af83ff15b7938344897932bb0eef6aca9770 | |
| parent | 2e3e831a6fc2cc227f9391fc39c729c613c20b65 (diff) | |
| download | slskd-db0e593fa8ef8c945185c558e79382a7cdc31764.tar.gz | |
adjust types
| -rw-r--r-- | src/slskd/Core/Options.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 008151fd..cdaafdcd 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -31,6 +31,8 @@ namespace slskd using NetTools; using slskd.Configuration; using slskd.Cryptography; + using slskd.Network; + using slskd.Shares; using slskd.Validation; using Soulseek.Diagnostics; using Utility.CommandLine; @@ -402,8 +404,8 @@ namespace slskd [EnvironmentVariable("NETWORK_OPERATION_MODE")] [Description("network operation mode; controller, agent")] [RequiresRestart] - [Enum(typeof(NetworkOperationMode))] - public string OperationMode { get; init; } = NetworkOperationMode.Controller.ToString().ToLowerInvariant(); + [Enum(typeof(OperationMode))] + public string OperationMode { get; init; } = slskd.Network.OperationMode.Controller.ToString().ToLowerInvariant(); /// <summary> /// Gets the controller configuration. @@ -627,7 +629,7 @@ namespace slskd [Description("the type of storage to use for the cache")] [Enum(typeof(StorageMode))] [RequiresRestart] - public string StorageMode { get; init; } = slskd.StorageMode.Memory.ToString().ToLowerInvariant(); + public string StorageMode { get; init; } = slskd.Shares.StorageMode.Memory.ToString().ToLowerInvariant(); /// <summary> /// Gets the number of workers to use while scanning shares. @@ -831,8 +833,8 @@ namespace slskd /// <summary> /// Gets the queue strategy for the group. /// </summary> - [Enum(typeof(QueueStrategy))] - public string Strategy { get; init; } = QueueStrategy.RoundRobin.ToString().ToLowerInvariant(); + [Enum(typeof(Transfers.QueueStrategy))] + public string Strategy { get; init; } = Transfers.QueueStrategy.RoundRobin.ToString().ToLowerInvariant(); /// <summary> /// Gets the limit for the total number of upload slots for the group. |
