Skip to content

Commit

Permalink
[client] Prefetch count 1 for enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Oct 27, 2023
1 parent 3ba94c0 commit d2e0df2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycti/connector/opencti_connector_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def run(self) -> None:
)
self.pika_connection = pika.BlockingConnection(self.pika_parameters)
self.channel = self.pika_connection.channel()
self.channel.basic_qos(prefetch_count=1)
assert self.channel is not None
self.channel.basic_consume(
queue=self.queue_name, on_message_callback=self._process_message
Expand Down

0 comments on commit d2e0df2

Please sign in to comment.