diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-01-11 22:18:21 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-01-11 22:18:21 -0600 |
| commit | 0e06dc2acac4461beb27daa4e2c83ca5a0d23152 (patch) | |
| tree | f8261a385ad187fc04ab57e82485f3fbdb490d48 | |
| parent | 183fcbe965bfea55222d66d3cbbc3cf349d17ecb (diff) | |
| download | slskd-0e06dc2acac4461beb27daa4e2c83ca5a0d23152.tar.gz | |
set slot limit
| -rw-r--r-- | src/slskd/Startup.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index f069c818..200a23fc 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -234,7 +234,9 @@ namespace slskd // add a partially configured instance of SoulseekClient. the Application instance will // complete configuration at startup. services.AddSingleton<ISoulseekClient, SoulseekClient>(_ => - new SoulseekClient(options: new SoulseekClientOptions(minimumDiagnosticLevel: OptionsAtStartup.Soulseek.DiagnosticLevel))); + new SoulseekClient(options: new SoulseekClientOptions( + maximumConcurrentUploads: OptionsAtStartup.Limits.Queue.Slots, + minimumDiagnosticLevel: OptionsAtStartup.Soulseek.DiagnosticLevel))); // add the core application service to DI as well as a hosted service so that other services can // access instance methods |
