Skip to content

Commit

Permalink
Update producer config
Browse files Browse the repository at this point in the history
  • Loading branch information
dspeck1 committed Aug 28, 2024
1 parent 914996f commit 18fa9ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def detector_load(conf: dict, instrument: str) -> list[int]:
return active_detectors

async def fan_out_msg(
producer,
fan_out_topic,
data
):
Expand Down Expand Up @@ -219,9 +220,7 @@ async def main() -> None:

# https://aiokafka.readthedocs.io/en/stable/producer.html
producer = AIOKafkaProducer(
fan_out_topic,
bootstrap_servers=prompt_processing_kafka_cluster,
enable_idempotence=True
bootstrap_servers=prompt_processing_kafka_cluster
)
await producer.start()

Expand Down

0 comments on commit 18fa9ec

Please sign in to comment.