mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Reuse a singleton HttpClient for proxying
This commit is contained in:
parent
c70556f5f9
commit
05282fd167
3 changed files with 5 additions and 14 deletions
|
|
@ -96,6 +96,7 @@ namespace PluralKit.Bot
|
|||
// LogLevel = LogSeverity.Debug // We filter log levels in Serilog, so just pass everything through (Debug is lower than Verbose)
|
||||
}))
|
||||
.AddSingleton<Bot>()
|
||||
.AddSingleton(_ => new HttpClient { Timeout = TimeSpan.FromSeconds(5) })
|
||||
.AddTransient<CommandTree>()
|
||||
|
||||
.AddTransient<SystemCommands>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue