mirror of
https://github.com/solero/houdini.git
synced 2024-12-26 07:23:36 +00:00
commit
576c15d7d1
@ -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