feat: async cache
this breaks logging bot permissions to Sentry. we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now this should be re-added in the future though
This commit is contained in:
@@ -42,7 +42,9 @@ namespace PluralKit.Bot
|
||||
};
|
||||
}).AsSelf().SingleInstance();
|
||||
builder.RegisterType<Cluster>().AsSelf().SingleInstance();
|
||||
builder.RegisterType<MemoryDiscordCache>().AsSelf().As<IDiscordCache>().SingleInstance();
|
||||
builder.Register(c => {
|
||||
return new MemoryDiscordCache();
|
||||
}).AsSelf().As<IDiscordCache>().SingleInstance();
|
||||
|
||||
builder.Register(c =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user