Skip to content

Commit

Permalink
wait for redis to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
steersbob committed Sep 22, 2023
1 parent e8ab471 commit 488d231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brewblox_history/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def autoconnect(func):
async def wrapper(self: 'RedisClient', *args, **kwargs):
if not self._redis:
self._redis = await aioredis.from_url(self.url)
await self._redis
return await func(self, *args, **kwargs)
return wrapper

Expand Down

0 comments on commit 488d231

Please sign in to comment.