Skip to content

Commit 0a3e6d9

Browse files
author
DanielePalaia
committed
consumer implementation
1 parent 1be8172 commit 0a3e6d9

File tree

5 files changed

+1
-112
lines changed

5 files changed

+1
-112
lines changed

examples/getting_started/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def __init__(self):
2121
def on_message(self, event: Event):
2222
print("received message: " + event.message.body)
2323
self.accept(event.delivery)
24+
self.rele
2425

2526
def on_connection_closed(self, event: Event):
2627
print("connection closed")

examples/getting_started/main.pytmp

Lines changed: 0 additions & 102 deletions
This file was deleted.

rabbitmq_amqp_python_client/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@
33
from .address_helper import exchange_address, queue_address
44
from .common import QueueType
55
from .connection import Connection
6-
<<<<<<< HEAD
7-
=======
86
from .consumer import Consumer
9-
>>>>>>> consumer_implementation
107
from .entities import (
118
BindingSpecification,
129
ExchangeSpecification,
1310
)
1411
from .management import Management
1512
from .publisher import Publisher
16-
17-
from .qpid.proton._message import Message
18-
1913
from .qpid.proton._events import Event
2014
from .qpid.proton._message import Message
2115
from .qpid.proton.handlers import MessagingHandler
@@ -47,7 +41,6 @@
4741
"exchange_address",
4842
"queue_address",
4943
"Message",
50-
5144
"Consumer",
5245
"MessagingHandler",
5346
"Event",

rabbitmq_amqp_python_client/connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
32
from typing import Optional
43

54
from .consumer import Consumer
@@ -39,7 +38,6 @@ def publisher(self, destination: str) -> Publisher:
3938
publisher = Publisher(self._conn, destination)
4039
return publisher
4140

42-
4341
def consumer(
4442
self, destination: str, handler: Optional[MessagingHandler] = None
4543
) -> Consumer:

rabbitmq_amqp_python_client/qpid/proton/_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ def create_receiver(
527527
handler=handler or fetcher,
528528
options=options,
529529
),
530-
531530
handler or fetcher,
532531
credit=prefetch,
533532
)

0 commit comments

Comments
 (0)