summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorEric Windisch <eric@cloudscaling.com>2012-08-15 12:55:50 -0400
committerEric Windisch <eric@cloudscaling.com>2012-08-15 12:55:50 -0400
commit704fb8b9850b6aa021ad79574c00a8408e889316 (patch)
treed55b48d5fc6a43548cc137df4c360e8491e57d71 /openstack
parent0d446cd6cdaf968b830f51fba2e547da2d98a65b (diff)
downloadoslo-704fb8b9850b6aa021ad79574c00a8408e889316.tar.gz
oslo-704fb8b9850b6aa021ad79574c00a8408e889316.tar.xz
oslo-704fb8b9850b6aa021ad79574c00a8408e889316.zip
Remove register_opts from client methods
During the nova->common migration, it was required to call register_opts on every client RPC api call. This is no longer required with cfg.CONF. Change-Id: Ia46c5d54e68c4d86a87570b2caff0da9755ca931
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rpc/impl_zmq.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/openstack/common/rpc/impl_zmq.py b/openstack/common/rpc/impl_zmq.py
index 0a534ec..efc94c0 100644
--- a/openstack/common/rpc/impl_zmq.py
+++ b/openstack/common/rpc/impl_zmq.py
@@ -639,26 +639,22 @@ def create_connection(conf, new=True):
def multicall(conf, *args, **kwargs):
"""Multiple calls."""
- register_opts(conf)
return _multi_send(_call, *args, **kwargs)
def call(conf, *args, **kwargs):
"""Send a message, expect a response."""
- register_opts(conf)
data = _multi_send(_call, *args, **kwargs)
return data[-1]
def cast(conf, *args, **kwargs):
"""Send a message expecting no reply."""
- register_opts(conf)
_multi_send(_cast, *args, **kwargs)
def fanout_cast(conf, context, topic, msg, **kwargs):
"""Send a message to all listening and expect no reply."""
- register_opts(conf)
# NOTE(ewindisch): fanout~ is used because it avoid splitting on .
# and acts as a non-subtle hint to the matchmaker and ZmqProxy.
_multi_send(_cast, context, 'fanout~' + str(topic), msg, **kwargs)
@@ -670,7 +666,6 @@ def notify(conf, context, topic, msg, **kwargs):
Notifications are sent to topic-priority.
This differs from the AMQP drivers which send to topic.priority.
"""
- register_opts(conf)
# NOTE(ewindisch): dot-priority in rpc notifier does not
# work with our assumptions.
topic.replace('.', '-')