Skip to content

Commit

Permalink
BDD test added for compression in sha extractro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Drobena committed Feb 13, 2024
1 parent ddef5da commit 9bfb946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/src/kafka_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ def consume_event(bootstrap, topic, group_id=None):
consumer.subscribe(topics=topic)
return consumer.poll()


def consume_message_from_topic(bootsrap, topic):
"""Consume one messages in given topic."""
consumer = KafkaConsumer(
topic,
bootstrap_servers=bootsrap,
auto_offset_reset="earliest",

)
return next(consumer)

0 comments on commit 9bfb946

Please sign in to comment.