fix(bot): always connect to redis if a redis address is configured
This commit is contained in:
parent
09768def91
commit
aeb6411b6c
@ -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…
Reference in New Issue
Block a user