mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
fix(bot): always connect to redis if a redis address is configured
This commit is contained in:
parent
09768def91
commit
aeb6411b6c
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ public class Init
|
||||||
|
|
||||||
// initialize Redis
|
// initialize Redis
|
||||||
var redis = services.Resolve<RedisService>();
|
var redis = services.Resolve<RedisService>();
|
||||||
if (config.UseRedisRatelimiter)
|
if (coreConfig.RedisAddr != null)
|
||||||
await redis.InitAsync(coreConfig);
|
await redis.InitAsync(coreConfig);
|
||||||
|
|
||||||
var cache = services.Resolve<IDiscordCache>();
|
var cache = services.Resolve<IDiscordCache>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue