mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
chore: require redis connection for bot
This commit is contained in:
parent
52c9ca9d0e
commit
3e76fd8d28
4 changed files with 5 additions and 14 deletions
|
|
@ -52,12 +52,6 @@ public class ShardInfoService
|
|||
|
||||
async Task Inner()
|
||||
{
|
||||
if (_redis.Connection == null)
|
||||
{
|
||||
_logger.Warning("Redis is disabled, shard connection status will be unavailable.");
|
||||
return;
|
||||
}
|
||||
|
||||
var db = _redis.Connection.GetDatabase();
|
||||
var redisInfo = await db.HashGetAsync("pluralkit::shardstatus", shard.ShardId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue