fix(bot): always connect to redis if a redis address is configured

This commit is contained in:
spiral 2022-09-02 08:54:32 +00:00 committed by GitHub
parent 09768def91
commit aeb6411b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>();