summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-01-07 15:13:44 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-01-07 15:13:44 +0000
commit07de428feb957283231fc94eb13e9d722ccccf2d (patch)
tree0dfd7c3a7ee0c277567f60b7e9bb4486a7f46e3b
parent109c0b27e31b1a6b4527deee46c250de0d4e1c83 (diff)
downloadrabbitmq-server-07de428feb957283231fc94eb13e9d722ccccf2d.tar.gz
tweak: make use of rabbit_misc:rs/1
-rw-r--r--src/rabbit_control_main.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 5bde996e..6ccd5011 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -283,9 +283,9 @@ action(forget_cluster_node, Node, [ClusterNodeS], Opts, Inform) ->
action(sync_queue, Node, [Q], Opts, Inform) ->
VHost = proplists:get_value(?VHOST_OPT, Opts),
- Inform("Synchronising queue \"~s\" in vhost \"~s\"", [Q, VHost]),
- rpc_call(Node, rabbit_control_main, sync_queue,
- [rabbit_misc:r(list_to_binary(VHost), queue, list_to_binary(Q))]);
+ QName = rabbit_misc:r(list_to_binary(VHost), queue, list_to_binary(Q)),
+ Inform("Synchronising ~s", [rabbit_misc:rs(QName)]),
+ rpc_call(Node, rabbit_control_main, sync_queue, [QName]);
action(wait, Node, [PidFile], _Opts, Inform) ->
Inform("Waiting for ~p", [Node]),