summaryrefslogtreecommitdiff
path: root/src/rabbit_mirror_queue_slave.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-08 11:44:57 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-08 11:44:57 +0100
commitc0420ca5f3d96e701df27b95a582acfe6d2d3b12 (patch)
tree7a31b74e0304979b120fa3ef5ef712ba1118a17d /src/rabbit_mirror_queue_slave.erl
parentddc942910cc8c90b7254c32497b280aa8471a974 (diff)
downloadrabbitmq-server-c0420ca5f3d96e701df27b95a582acfe6d2d3b12.tar.gz
fix dialyzer warnings
The ones left now are mostly our over-specifying functions in interfaces and a couple of "crated function has no return".
Diffstat (limited to 'src/rabbit_mirror_queue_slave.erl')
-rw-r--r--src/rabbit_mirror_queue_slave.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl
index c918f388..3371380f 100644
--- a/src/rabbit_mirror_queue_slave.erl
+++ b/src/rabbit_mirror_queue_slave.erl
@@ -45,8 +45,19 @@
-behaviour(gm).
-include("rabbit.hrl").
+
+%%----------------------------------------------------------------------------
+
-include("gm_specs.hrl").
+-ifdef(use_specs).
+%% Shut dialyzer up
+-spec(promote_me/2 :: (_, _) -> no_return()).
+-endif.
+
+%%----------------------------------------------------------------------------
+
+
-define(SYNC_INTERVAL, 25). %% milliseconds
-define(RAM_DURATION_UPDATE_INTERVAL, 5000).
-define(DEATH_TIMEOUT, 20000). %% 20 seconds