From 9b203e6f9eccc71644b76900c2a7b7084d6a240c Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 1 May 2023 14:26:15 +0100 Subject: update Redis config This also renames RedisConfig to Redis, the way we have it in Python --- bot/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bot/__main__.py') diff --git a/bot/__main__.py b/bot/__main__.py index 970614ce..bd3df263 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -19,11 +19,11 @@ log = logging.getLogger(__name__) async def _create_redis_session() -> RedisSession: """Create and connect to a redis session.""" redis_session = RedisSession( - host=constants.RedisConfig.host, - port=constants.RedisConfig.port, - password=constants.RedisConfig.password, + host=constants.Redis.host, + port=constants.Redis.port, + password=constants.Redis.password, max_connections=20, - use_fakeredis=constants.RedisConfig.use_fakeredis, + use_fakeredis=constants.Redis.use_fakeredis, global_namespace="bot", decode_responses=True, ) -- cgit v1.2.3