File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
rabbitmq_amqp_python_client Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
AMQPMessagingHandler ,
7
7
BindingSpecification ,
8
8
Connection ,
9
- Disposition ,
10
9
Environment ,
11
10
Event ,
12
11
ExchangeSpecification ,
13
12
Message ,
13
+ OutcomeState ,
14
14
QuorumQueueSpecification ,
15
15
)
16
16
@@ -126,11 +126,11 @@ def main() -> None:
126
126
for i in range (MESSAGES_TO_PUBLISH ):
127
127
print ("publishing" )
128
128
status = publisher .publish (Message (body = "test" ))
129
- if status .remote_state == Disposition .ACCEPTED :
129
+ if status .remote_state == OutcomeState .ACCEPTED :
130
130
print ("message accepted" )
131
- elif status .remote_state == Disposition .RELEASED :
131
+ elif status .remote_state == OutcomeState .RELEASED :
132
132
print ("message not routed" )
133
- elif status .remote_state == Disposition .REJECTED :
133
+ elif status .remote_state == OutcomeState .REJECTED :
134
134
print ("message not rejected" )
135
135
136
136
publisher .close ()
Original file line number Diff line number Diff line change 40
40
41
41
del metadata
42
42
43
+ OutcomeState = Disposition
44
+
43
45
__all__ = [
44
46
"Connection" ,
45
47
"Management" ,
62
64
"ArgumentOutOfRangeException" ,
63
65
"SslConfigurationContext" ,
64
66
"ClientCert" ,
65
- "Delivery" ,
66
67
"ConnectionClosed" ,
67
68
"StreamOptions" ,
68
69
"OffsetSpecification" ,
69
- "Disposition " ,
70
+ "OutcomeState " ,
70
71
"Environment" ,
71
72
]
Original file line number Diff line number Diff line change 1
1
import logging
2
- from typing import Optional
2
+ from typing import Optional , TypeVar
3
3
4
4
from .options import SenderOptionUnseattle
5
5
from .qpid .proton ._delivery import Delivery
You can’t perform that action at this time.
0 commit comments