Skip to content

Commit

Permalink
stop using redis single connection as it is not thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Ben David committed Oct 3, 2021
1 parent 9ab1f67 commit 8368ee5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
exclude: '.*(test|benchmark).*'
repos:
- repo: https://github.com/Intsights/flake8-intsights
rev: v0.1.5
rev: v0.1.6
hooks:
- id: flake8-intsights
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.910
hooks:
- id: mypy
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hiredis==1.*
hiredis==2.*
msgpack==1.*
orjson==3.*
psutil==5.*
Expand Down
2 changes: 1 addition & 1 deletion sergeant/connector/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __init__(
socket_keepalive=True,
socket_connect_timeout=10,
socket_timeout=60,
single_connection_client=True,
single_connection_client=False,
)
for node in nodes
]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setuptools.setup(
name='sergeant',
version='0.21.1',
version='0.22.0',
author='Gal Ben David',
author_email='[email protected]',
url='https://github.com/Intsights/sergeant',
Expand All @@ -24,7 +24,7 @@
python_requires='>=3.7',
zip_safe=False,
install_requires=[
'hiredis==1.*',
'hiredis==2.*',
'msgpack==1.*',
'orjson==3.*',
'psutil==5.*',
Expand Down

0 comments on commit 8368ee5

Please sign in to comment.