From 0e06dc2acac4461beb27daa4e2c83ca5a0d23152 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 11 Jan 2022 22:18:21 -0600 Subject: set slot limit --- src/slskd/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(_ => - 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 -- cgit v1.2.3