Skip to content

Commit

Permalink
Address @scorphus comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Nov 2, 2022
1 parent 75db002 commit b255ba5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ build
coverage.lcov
.env/
.venv/
.vscode/
6 changes: 3 additions & 3 deletions remotecv/storages/redis_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

from json import loads

from aioredis import Redis
from aioredis.sentinel import Sentinel
from redis.asyncio import Redis
from redis.asyncio.sentinel import Sentinel
from redis import RedisError


Expand Down Expand Up @@ -57,7 +57,7 @@ def __redis_sentinel_client(self):
self.context.config.REDIS_QUEUE_SENTINEL_INSTANCES.split(",")
)
instances = [
tuple(instance.split(":")) for instance in instances_split
tuple(instance.split(":", 1)) for instance in instances_split
]

if self.context.config.REDIS_QUEUE_SENTINEL_PASSWORD:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Pillow>=9.0.0",
"pyres==1.*,>=1.5.0",
"sentry-sdk==0.*,>=0.14.2",
"aioredis==2.*",
"redis==4.*,>=4.2.0",
]

setup(
Expand Down

0 comments on commit b255ba5

Please sign in to comment.