Skip to content

Commit 9ac48a3

Browse files
committed
Fix socket timeout parameter
1 parent 4d14354 commit 9ac48a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

experiments/counters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Counters(object):
1515
@cached_property
1616
def _redis(self):
1717
if getattr(settings, 'EXPERIMENTS_REDIS_SENTINELS', None):
18-
sentinel = Sentinel(settings.EXPERIMENTS_REDIS_SENTINELS)
19-
host, port = sentinel.discover_master(settings.EXPERIMENTS_REDIS_MASTER_NAME, socket_timeout=settings.EXPERIMENTS_REDIS_SENTINELS_TIMEOUT)
18+
sentinel = Sentinel(settings.EXPERIMENTS_REDIS_SENTINELS, socket_timeout=settings.EXPERIMENTS_REDIS_SENTINELS_TIMEOUT)
19+
host, port = sentinel.discover_master(settings.EXPERIMENTS_REDIS_MASTER_NAME)
2020
else:
2121
host = getattr(settings, 'EXPERIMENTS_REDIS_HOST', 'localhost')
2222
port = getattr(settings, 'EXPERIMENTS_REDIS_PORT', 6379)

0 commit comments

Comments
 (0)