Skip to content
Snippets Groups Projects
Unverified Commit 9c487098 authored by Koichi MATSUMOTO's avatar Koichi MATSUMOTO Committed by GitHub
Browse files

Fix TypeError

Fix TypeError
parent b8ffa07a
Branches
Tags
No related merge requests found
...@@ -35,7 +35,8 @@ class RedisCache(BaseCache): ...@@ -35,7 +35,8 @@ class RedisCache(BaseCache):
self._pool = None self._pool = None
async def setup(self): async def setup(self):
self._pool = await aioredis.from_url(**self._opts) url = self._opts['address']
self._pool = await aioredis.from_url(url, **self._opts)
async def get(self, key): async def get(self, key):
assert self._pool is not None assert self._pool is not None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment