Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing typo #104

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions opl/skip_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def create_consumer(args):
# Common parameters for both cases
common_params = {
"bootstrap_servers": args.kafka_hosts,
"bootstrap_servers": args.kafka_host,
"auto_offset_reset": "latest",
"enable_auto_commit": True,
"group_id": args.kafka_group,
Expand All @@ -26,7 +26,7 @@ def create_consumer(args):
# Kafka consumer creation: SASL or noauth
if args.kafka_username != "" and args.kafka_password != "":
logging.info(
f"Creating SASL password-protected Kafka consumer for {args.kafka_hosts} in group {args.kafka_group} with timeout {args.kafka_timeout} ms topic {args.kafka_topic}"
f"Creating SASL password-protected Kafka consumer for {args.kafka_host} in group {args.kafka_group} with timeout {args.kafka_timeout} ms topic {args.kafka_topic}"
)
sasl_params = {
"security_protocol": "SASL_SSL",
Expand All @@ -37,7 +37,7 @@ def create_consumer(args):
consumer = KafkaConsumer([args.kafka_topic], **common_params, **sasl_params)
else:
logging.info(
f"Creating passwordless producer for for {args.kafka_hosts} in group {args.kafka_group} with timeout {args.kafka_timeout} ms topic {args.kafka_topic}"
f"Creating passwordless producer for for {args.kafka_host} in group {args.kafka_group} with timeout {args.kafka_timeout} ms topic {args.kafka_topic}"
)
consumer = KafkaConsumer([args.kafka_topic], **common_params)
return consumer
Expand Down