summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-01-20 13:20:53 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-01-20 13:20:53 +0000
commit785dbad7489bd767da160e7bd7495c2f37559f1e (patch)
tree7c82a3b5bed8bc6b5a6e63121aa0d982973999c5 /src
parentc8c2fc51a17e913fd4c27b9793a7234899068838 (diff)
downloadrabbitmq-server-git-785dbad7489bd767da160e7bd7495c2f37559f1e.tar.gz
cosmetic: move spec of internal function and make it more precise
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_mirror_queue_slave.erl13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl
index 9f12b34e22..867aa2ed26 100644
--- a/src/rabbit_mirror_queue_slave.erl
+++ b/src/rabbit_mirror_queue_slave.erl
@@ -37,18 +37,10 @@
-include("rabbit.hrl").
-%%----------------------------------------------------------------------------
-
-include("gm_specs.hrl").
--ifdef(use_specs).
-%% Shut dialyzer up
--spec(promote_me/2 :: (_, _) -> no_return()).
--endif.
-
%%----------------------------------------------------------------------------
-
-define(CREATION_EVENT_KEYS,
[pid,
name,
@@ -79,6 +71,8 @@
depth_delta
}).
+%%----------------------------------------------------------------------------
+
start_link(Q) -> gen_server2:start_link(?MODULE, Q, []).
set_maximum_since_use(QPid, Age) ->
@@ -469,6 +463,9 @@ confirm_messages(MsgIds, State = #state { msg_id_status = MS }) ->
handle_process_result({ok, State}) -> noreply(State);
handle_process_result({stop, State}) -> {stop, normal, State}.
+-ifdef(use_specs).
+-spec(promote_me/2 :: ({pid(), term()}, #state{}) -> no_return()).
+-endif.
promote_me(From, #state { q = Q = #amqqueue { name = QName },
gm = GM,
backing_queue = BQ,