File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
14
15
- import contextlib
16
15
import logging
17
16
import sys
18
17
import time
@@ -33,8 +32,8 @@ def main():
33
32
CONF (sys .argv [1 :], project = 'oslo' )
34
33
logging .basicConfig (level = logging .DEBUG )
35
34
36
- with contextlib . closing ( zmq_broker .ZmqBroker (CONF )) as reactor :
37
- reactor .start ()
35
+ reactor = zmq_broker .ZmqBroker (CONF )
36
+ reactor .start ()
38
37
39
38
while True :
40
39
time .sleep (1 )
Original file line number Diff line number Diff line change 70
70
help = 'Expiration timeout in seconds of a name service record '
71
71
'about existing target ( < 0 means no timeout).' ),
72
72
73
- cfg .BoolOpt ('use_pub_sub' , default = False ,
73
+ cfg .BoolOpt ('use_pub_sub' , default = True ,
74
74
help = 'Use PUB/SUB pattern for fanout methods. '
75
75
'PUB/SUB always uses proxy.' ),
76
76
You can’t perform that action at this time.
0 commit comments