mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
feat(bot): implement sharded http cache lookup
This commit is contained in:
parent
9ff824c37b
commit
8f9b6f1554
3 changed files with 20 additions and 14 deletions
|
|
@ -50,7 +50,7 @@ public class BotModule: Module
|
|||
|
||||
if (botConfig.HttpCacheUrl != null)
|
||||
return new HttpDiscordCache(c.Resolve<ILogger>(),
|
||||
c.Resolve<HttpClient>(), botConfig.HttpCacheUrl, botConfig.ClientId);
|
||||
c.Resolve<HttpClient>(), botConfig.HttpCacheUrl, botConfig.Cluster?.TotalShards ?? 1, botConfig.ClientId);
|
||||
|
||||
return new MemoryDiscordCache(botConfig.ClientId);
|
||||
}).AsSelf().SingleInstance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue