diff --git a/gcn_kafka/core.py b/gcn_kafka/core.py index 5610d35..26d62d8 100644 --- a/gcn_kafka/core.py +++ b/gcn_kafka/core.py @@ -48,6 +48,9 @@ def get_config(mode, config, **kwargs): if mode == "consumer" and not config.get("group.id"): config["group.id"] = str(uuid4()) + if mode == "producer": + config.setdefault('compression.type', 'zstd') + set_oauth_cb(config) return config