Ver Fonte

修改测试接口

locky há 1 ano atrás
pai
commit
9c8afc5b7a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Controller/InitController.py

+ 1 - 1
Controller/InitController.py

@@ -55,7 +55,7 @@ class InitView(View):
             value = request_dict.get('value', None)
 
             password = '012bzaKUhleHc2645465'
-            pool = redis.ConnectionPool(host='10.60.1.113', password=password, port=6379, db=0, cluster=False)
+            pool = redis.ConnectionPool(host='10.60.1.113', password=password, port=6379, db=0, redirect_to_master=True)
             r = redis.Redis(connection_pool=pool)
             r.ping()
             r.set(name=key, value=value, ex=60)