diff options
author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2018-11-30 11:30:36 +0100 |
---|---|---|
committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-02-01 11:23:16 +0100 |
commit | 5bbde6d0a3eb1790d4965d76c8699d0187b74183 (patch) | |
tree | df1cd4f48442a8e79d45e35c255cd28851dee63d /src/rabbit_amqqueue_sup_sup.erl | |
parent | d142bbc45a4d0f8482b6a98d1f16a725cdf8d8a8 (diff) | |
download | rabbitmq-server-git-5bbde6d0a3eb1790d4965d76c8699d0187b74183.tar.gz |
Move `-spec()` near their function
Diffstat (limited to 'src/rabbit_amqqueue_sup_sup.erl')
-rw-r--r-- | src/rabbit_amqqueue_sup_sup.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_amqqueue_sup_sup.erl b/src/rabbit_amqqueue_sup_sup.erl index 7e40e54aca..9e30a7f0ae 100644 --- a/src/rabbit_amqqueue_sup_sup.erl +++ b/src/rabbit_amqqueue_sup_sup.erl @@ -31,15 +31,14 @@ %%---------------------------------------------------------------------------- -spec start_link() -> rabbit_types:ok_pid_or_error(). --spec start_queue_process - (node(), amqqueue:amqqueue(), 'declare' | 'recovery' | 'slave') -> - pid(). - -%%---------------------------------------------------------------------------- start_link() -> supervisor2:start_link(?MODULE, []). +-spec start_queue_process + (node(), amqqueue:amqqueue(), 'declare' | 'recovery' | 'slave') -> + pid(). + start_queue_process(Node, Q, StartMode) -> #resource{virtual_host = VHost} = amqqueue:get_name(Q), {ok, Sup} = find_for_vhost(VHost, Node), |