Skip to content

Commit

Permalink
Turn on zstd compression by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Oct 7, 2022
1 parent 93e4208 commit 15cb72e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcn_kafka/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 15cb72e

Please sign in to comment.