fix: Redis Sentinel参数类型问题,导致报错

pull/8960/head^2
jiangweidong 2 years ago committed by Jiangjie.Bai
parent c295f44d9c
commit c74584f63c

@ -291,7 +291,10 @@ REDIS_PROTOCOL = 'rediss' if REDIS_USE_SSL else 'redis'
REDIS_SENTINELS_HOST = CONFIG.REDIS_SENTINELS_HOST
REDIS_SENTINEL_SERVICE_NAME, REDIS_SENTINELS = parse_sentinels_host(REDIS_SENTINELS_HOST)
REDIS_SENTINEL_PASSWORD = CONFIG.REDIS_SENTINEL_PASSWORD
REDIS_SENTINEL_SOCKET_TIMEOUT = CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT
if CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT:
REDIS_SENTINEL_SOCKET_TIMEOUT = int(CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT)
else:
REDIS_SENTINEL_SOCKET_TIMEOUT = None
# Cache config
REDIS_OPTIONS = {

Loading…
Cancel
Save