Skip to content

Commit

Permalink
bugfix auto_ack
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmatthias committed Mar 14, 2024
1 parent a3ebec5 commit 236b087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "amqpstorm-flask"
version = "0.3.1"
version = "0.3.2"
description = "amqpstorm library for Flask"
readme = "README.md"
authors = [{ name = "Inuits", email = "[email protected]" }]
Expand Down
4 changes: 2 additions & 2 deletions src/amqpstorm_flask/RabbitMQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def queue(
self,
routing_key: Union[str, List[str]],
exchange_type: str = "topic",
auto_ack: bool = False,
auto_ack: bool = None,
dead_letter_exchange: bool = False,
props_needed: List[str] | None = None,
exchange_name: str = None,
Expand Down Expand Up @@ -218,7 +218,7 @@ def new_consumer():
self.channel.basic.qos(prefetch_count=prefetch_count)
cb_function = f if full_message_object else self.__create_wrapper_function(routing_key, f)
self.channel.basic.consume(
cb_function, queue=queue, no_ack=self.queue_params.no_ack if auto_ack is False else auto_ack
cb_function, queue=queue, no_ack=self.queue_params.no_ack if auto_ack is None else auto_ack
)
self.channel.queue.bind(
queue=queue,
Expand Down

0 comments on commit 236b087

Please sign in to comment.