We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48c3084 commit f3d1065Copy full SHA for f3d1065
4 files changed
splitio/client/config.py
@@ -171,7 +171,12 @@ def sanitize(sdk_key, config):
171
processed["httpAuthenticateScheme"] = authenticate_scheme
172
173
processed = _sanitize_fallback_config(config, processed)
174
+
175
+ if config.get("redisErrors") is not None:
176
+ _LOGGER.warning('Parameter `redisErrors` is deprecated as it is no longer supported in redis lib.' \
177
+ ' Will ignore this value.')
178
179
+ processed["redisErrors"] = None
180
return processed
181
182
def _sanitize_fallback_config(config, processed):
splitio/storage/adapters/redis.py
@@ -715,7 +715,6 @@ def _build_default_client(config): # pylint: disable=too-many-locals
715
unix_socket_path = config.get('redisUnixSocketPath', None)
716
encoding = config.get('redisEncoding', 'utf-8')
717
encoding_errors = config.get('redisEncodingErrors', 'strict')
718
-# errors = config.get('redisErrors', None)
719
decode_responses = config.get('redisDecodeResponses', True)
720
retry_on_timeout = config.get('redisRetryOnTimeout', False)
721
ssl = config.get('redisSsl', False)
tests/client/test_factory.py
@@ -112,7 +112,6 @@ def test_redis_client_creation(self, mocker):
112
'redisConnectionPool': False,
113
'redisUnixSocketPath': '/some_path',
114
'redisEncodingErrors': 'non-strict',
115
- 'redisErrors': True,
116
'redisDecodeResponses': True,
117
'redisRetryOnTimeout': True,
118
'redisSsl': True,
tests/storage/adapters/test_redis_adapter.py
@@ -99,7 +99,6 @@ def test_adapter_building(self, mocker):
99
'redisUnixSocketPath': '/tmp/socket',
100
'redisEncoding': 'utf-8',
101
'redisEncodingErrors': 'strict',
102
-# 'redisErrors': 'abc',
103
104
105
@@ -151,7 +150,6 @@ def test_adapter_building(self, mocker):
151
150
152
153
154
155
156
157
'redisSsl': False,
@@ -529,7 +527,6 @@ def master_for(se,
529
527
530
528
531
532
- 'redisErrors': 'abc',
533
534
535
0 commit comments