We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da21744 + e59e6cf commit c2eccd5Copy full SHA for c2eccd5
kafka/consumer/kafka.py
@@ -53,6 +53,7 @@
53
54
class KafkaConsumer(object):
55
"""A simpler kafka consumer"""
56
+ DEFAULT_CONFIG = deepcopy(DEFAULT_CONSUMER_CONFIG)
57
58
def __init__(self, *topics, **configs):
59
self.configure(**configs)
@@ -111,8 +112,8 @@ def configure(self, **configs):
111
112
"""
113
configs = self._deprecate_configs(**configs)
114
self._config = {}
- for key in DEFAULT_CONSUMER_CONFIG:
115
- self._config[key] = configs.pop(key, DEFAULT_CONSUMER_CONFIG[key])
+ for key in self.DEFAULT_CONFIG:
116
+ self._config[key] = configs.pop(key, self.DEFAULT_CONFIG[key])
117
118
if configs:
119
raise KafkaConfigurationError('Unknown configuration key(s): ' +
0 commit comments