summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-03-29 12:14:03 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-03-29 12:14:03 +0100
commit09efa314c122db7c50ed20b86c76f7013b089b97 (patch)
treebc65b74befa6221587b1223675b74609ef8e0787 /src
parent042b3237005be68d2f6b9062dffb9456edfe2df7 (diff)
downloadrabbitmq-server-git-09efa314c122db7c50ed20b86c76f7013b089b97.tar.gz
Dialyser
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue.erl4
-rw-r--r--src/rabbit_binding.erl2
-rw-r--r--src/rabbit_misc.erl2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index 167b1a55ac..e55b009887 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -139,8 +139,8 @@
-spec(internal_delete/1 ::
(name()) -> rabbit_types:ok_or_error('not_found') |
rabbit_types:connection_exit() |
- fun ((boolean()) -> rabbit_types:ok_or_error('not_found') |
- rabbit_types:connection_exit())).
+ fun (() -> rabbit_types:ok_or_error('not_found') |
+ rabbit_types:connection_exit())).
-spec(run_backing_queue/2 ::
(pid(), (fun ((A) -> {[rabbit_types:msg_id()], A}))) -> 'ok').
-spec(run_backing_queue_async/2 ::
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl
index db7b603e6e..ed85b9eaa3 100644
--- a/src/rabbit_binding.erl
+++ b/src/rabbit_binding.erl
@@ -77,7 +77,7 @@
(rabbit_types:binding_destination()) -> deletions()).
-spec(remove_transient_for_destination/1 ::
(rabbit_types:binding_destination()) -> deletions()).
--spec(process_deletions/1 :: (deletions()) -> 'ok').
+-spec(process_deletions/1 :: (deletions()) -> fun(() -> 'ok')).
-spec(combine_deletions/2 :: (deletions(), deletions()) -> deletions()).
-spec(add_deletion/3 :: (rabbit_exchange:name(),
{'undefined' | rabbit_types:exchange(),
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 45f599993a..7d3476e6b2 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -66,7 +66,7 @@
-type(ok_or_error() :: rabbit_types:ok_or_error(any())).
-type(thunk(T) :: fun(() -> T)).
--type(const(T) :: fun((any()) -> T)).
+-type(const(T) :: fun(() -> T)).
-type(resource_name() :: binary()).
-type(optdef() :: {flag, string()} | {option, string(), any()}).
-type(channel_or_connection_exit()