From 239b0dad7b42b0b9f1e373e593dab191db7473ac Mon Sep 17 00:00:00 2001 From: AllinolCP <56921534+AllinolCP@users.noreply.github.com> Date: Sat, 31 Jul 2021 18:03:08 +0700 Subject: [PATCH] Update houdini.py Fix aioredis 2.0 --- houdini/houdini.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/houdini/houdini.py b/houdini/houdini.py index 1a52348..ef9ebf3 100644 --- a/houdini/houdini.py +++ b/houdini/houdini.py @@ -133,10 +133,8 @@ class Houdini: self.config.database_name)) self.logger.info('Booting Houdini') - - self.redis = await aioredis.create_redis_pool('redis://{}:{}'.format( - self.config.redis_address, self.config.redis_port), - minsize=5, maxsize=10) + pool = aioredis.ConnectionPool.from_url(f'redis://{self.config.redis_address}:{self.config.redis_port}') + self.redis = aioredis.Redis(connection_pool=pool) if self.config.type == 'world': await self.redis.delete(f'houdini.players.{self.config.id}')