@@ -907,46 +907,27 @@ def default_redis_sentinel_factory(config):
907907 socket_keepalive = config .get ('redisSocketKeepalive' , None )
908908 socket_keepalive_options = config .get ('redisSocketKeepaliveOptions' , None )
909909 connection_pool = config .get ('redisConnectionPool' , None )
910- unix_socket_path = config .get ('redisUnixSocketPath' , None )
911910 encoding = config .get ('redisEncoding' , 'utf-8' )
912911 encoding_errors = config .get ('redisEncodingErrors' , 'strict' )
913- charset = config .get ('redisCharset' , None )
914- errors = config .get ('redisErrors' , None )
915912 decode_responses = config .get ('redisDecodeResponses' , False )
916913 retry_on_timeout = config .get ('redisRetryOnTimeout' , False )
917- ssl = config .get ('redisSsl' , False )
918- ssl_keyfile = config .get ('redisSslKeyfile' , None )
919- ssl_certfile = config .get ('redisSslCertfile' , None )
920- ssl_cert_reqs = config .get ('redisSslCertReqs' , None )
921- ssl_ca_certs = config .get ('redisSslCaCerts' , None )
922914 max_connections = config .get ('redisMaxConnections' , None )
923915 prefix = config .get ('redisPrefix' )
924916
925917 sentinel = Sentinel (
926918 sentinels ,
927- 0 ,
928- {
929- 'db' : db ,
930- 'password' : password ,
931- 'socket_timeout' : socket_timeout ,
932- 'socket_connect_timeout' : socket_connect_timeout ,
933- 'socket_keepalive' : socket_keepalive ,
934- 'socket_keepalive_options' : socket_keepalive_options ,
935- 'connection_pool' : connection_pool ,
936- 'unix_socket_path' : unix_socket_path ,
937- 'encoding' : encoding ,
938- 'encoding_errors' : encoding_errors ,
939- 'charset' : charset ,
940- 'errors' : errors ,
941- 'decode_responses' : decode_responses ,
942- 'retry_on_timeout' : retry_on_timeout ,
943- 'ssl' : ssl ,
944- 'ssl_keyfile' : ssl_keyfile ,
945- 'ssl_certfile' : ssl_certfile ,
946- 'ssl_cert_reqs' : ssl_cert_reqs ,
947- 'ssl_ca_certs' : ssl_ca_certs ,
948- 'max_connections' : max_connections
949- }
919+ db = db ,
920+ password = password ,
921+ socket_timeout = socket_timeout ,
922+ socket_connect_timeout = socket_connect_timeout ,
923+ socket_keepalive = socket_keepalive ,
924+ socket_keepalive_options = socket_keepalive_options ,
925+ connection_pool = connection_pool ,
926+ encoding = encoding ,
927+ encoding_errors = encoding_errors ,
928+ decode_responses = decode_responses ,
929+ retry_on_timeout = retry_on_timeout ,
930+ max_connections = max_connections
950931 )
951932
952933 redis = sentinel .master_for (master_service )
0 commit comments