Merge pull request #77 from AllinolCP/patch-4

Update houdini.py
This commit is contained in:
Ben 2021-07-31 12:53:50 +01:00 committed by GitHub
commit 576c15d7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,10 +133,8 @@ class Houdini:
self.config.database_name)) self.config.database_name))
self.logger.info('Booting Houdini') self.logger.info('Booting Houdini')
pool = aioredis.ConnectionPool.from_url(f'redis://{self.config.redis_address}:{self.config.redis_port}')
self.redis = await aioredis.create_redis_pool('redis://{}:{}'.format( self.redis = aioredis.Redis(connection_pool=pool)
self.config.redis_address, self.config.redis_port),
minsize=5, maxsize=10)
if self.config.type == 'world': if self.config.type == 'world':
await self.redis.delete(f'houdini.players.{self.config.id}') await self.redis.delete(f'houdini.players.{self.config.id}')