aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-05-01 14:26:15 +0100
committerGravatar shtlrs <[email protected]>2023-05-06 13:20:46 +0100
commit9b203e6f9eccc71644b76900c2a7b7084d6a240c (patch)
treeb12815c2606967e5e9604a18e357ed8c58f6c401 /bot/__main__.py
parentupdate Tokens & Wolfram (diff)
update Redis config
This also renames RedisConfig to Redis, the way we have it in Python
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py8
1 files changed, 4 insertions, 4 deletions
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,
)