Skip to content

Commit

Permalink
Accomodate pamqp 3.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Jun 4, 2024
1 parent 557ded5 commit c77f085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/message_queue_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import aio_pika
from aio_pika import DeliveryMode, ExchangeType
from aio_pika.exceptions import ProbableAuthenticationError
from pamqp import specification
from pamqp import commands

from service import config
from service.decorators import with_logger
Expand Down Expand Up @@ -114,7 +114,7 @@ async def publish(
)

confirmation = await exchange.publish(message, routing_key=routing)
if not isinstance(confirmation, specification.Basic.Ack):
if not isinstance(confirmation, commands.Basic.Ack):
self._logger.warning(
"Message could not be delivered to %s, received %s",
routing,
Expand Down

0 comments on commit c77f085

Please sign in to comment.