mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 13:07:21 +00:00
Update houdini.py
Fix aioredis 2.0
This commit is contained in:
parent
a8fc63393e
commit
239b0dad7b
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user