Skip to content

Commit

Permalink
Fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaditya Chauhan authored and jhutar committed Jan 4, 2024
1 parent d5f1d16 commit 1fa5141
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 1fa5141

Please sign in to comment.