From b6503754a24e6c4ba5df3a0abdf11474ba53abb9 Mon Sep 17 00:00:00 2001 From: wayslog Date: Wed, 8 Aug 2018 17:34:53 +0800 Subject: [PATCH] pin redis dependency version and compitable with redis 4.0. --- ruskit/cluster.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruskit/cluster.py b/ruskit/cluster.py index 0acab95..9996f09 100644 --- a/ruskit/cluster.py +++ b/ruskit/cluster.py @@ -229,7 +229,7 @@ def _parse_node(self, nodes): confs = item.split() node_info = { "name": confs[0], - "addr": confs[1], + "addr": confs[1].split("@")[0], "flags": confs[2].split(','), "replicate": confs[3], # master_id "ping_sent": int(confs[4]), diff --git a/setup.py b/setup.py index 11e54eb..56f3030 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ }, install_requires=[ "hiredis", - "redis>=2.10.5", + "redis==2.10.5", ], extras_require={ 'addslaves': ['python-igraph'],