diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-01-10 09:09:03 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-01-10 09:09:03 -0600 |
| commit | d5e3a4776716a1348e8603c1054bf0f33967fa1e (patch) | |
| tree | 96f93cfe863c90a4e5692a4a9d3d0150ae3e17b2 /src | |
| parent | 4495f4176f9f4be435d8fe8604b71471476eba5f (diff) | |
| download | slskd-d5e3a4776716a1348e8603c1054bf0f33967fa1e.tar.gz | |
don't require a restart if slots change
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/Configuration/YamlConfigurationSource.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Options.cs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/slskd/Common/Configuration/YamlConfigurationSource.cs b/src/slskd/Common/Configuration/YamlConfigurationSource.cs index 191e49ab..7f2c548d 100644 --- a/src/slskd/Common/Configuration/YamlConfigurationSource.cs +++ b/src/slskd/Common/Configuration/YamlConfigurationSource.cs @@ -111,7 +111,7 @@ namespace slskd.Configuration { // clear the data collection before we populate // not doing this will cause array and dictionary keys - // to get "stuck" + // to get "stuck" when the config is reloaded Data.Clear(); using var reader = new StreamReader(stream); diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 0d7fb4fe..bffc1be9 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -435,7 +435,6 @@ namespace slskd public string Strategy { get; init; } = "roundrobin"; [Argument(default, "queue-slots")] - [RequiresRestart] [Range(1, int.MaxValue)] public int Slots { get; init; } = 10; @@ -448,7 +447,6 @@ namespace slskd [Enum(typeof(QueueStrategy))] public string Strategy { get; init; } = "roundrobin"; - [RequiresRestart] [Range(1, int.MaxValue)] public int Slots { get; init; } = 10; |
