Skip to content

Commit 11d7c44

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "[zmq] Fix slow down"
2 parents e32560e + e7d6e92 commit 11d7c44

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

oslo_messaging/_cmd/zmq_broker.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
import contextlib
1615
import logging
1716
import sys
1817
import time
@@ -33,8 +32,8 @@ def main():
3332
CONF(sys.argv[1:], project='oslo')
3433
logging.basicConfig(level=logging.DEBUG)
3534

36-
with contextlib.closing(zmq_broker.ZmqBroker(CONF)) as reactor:
37-
reactor.start()
35+
reactor = zmq_broker.ZmqBroker(CONF)
36+
reactor.start()
3837

3938
while True:
4039
time.sleep(1)

oslo_messaging/_drivers/impl_zmq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
help='Expiration timeout in seconds of a name service record '
7171
'about existing target ( < 0 means no timeout).'),
7272

73-
cfg.BoolOpt('use_pub_sub', default=False,
73+
cfg.BoolOpt('use_pub_sub', default=True,
7474
help='Use PUB/SUB pattern for fanout methods. '
7575
'PUB/SUB always uses proxy.'),
7676

0 commit comments

Comments
 (0)