diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-06-26 16:57:53 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-06-26 16:57:53 +0100 |
commit | a82ee24122224a9d75f7b795d638145f9f6de49b (patch) | |
tree | c40b9025533d55f5a28dae2aab6b01c694b874f3 | |
parent | e47bbfb289a388826b35f0adb6ffadfadda5ea20 (diff) | |
download | rabbitmq-server-bug24826.tar.gz |
More spec correctness.bug24826
-rw-r--r-- | src/rabbit_exchange.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl index 4f6959ba..57c571f1 100644 --- a/src/rabbit_exchange.erl +++ b/src/rabbit_exchange.erl @@ -38,8 +38,9 @@ -spec(recover/0 :: () -> [name()]). -spec(callback/4:: - (rabbit_types:exchange(), fun_name(), non_neg_integer() | atom(), - [any()]) -> 'ok'). + (rabbit_types:exchange(), fun_name(), + fun((boolean()) -> non_neg_integer()) | atom(), + [any()]) -> 'ok'). -spec(policy_changed/2 :: (rabbit_types:exchange(), rabbit_types:exchange()) -> 'ok'). -spec(declare/6 :: @@ -87,7 +88,7 @@ (rabbit_types:exchange()) -> 'not_deleted' | {'deleted', rabbit_binding:deletions()}). -spec(serial/1 :: (rabbit_types:exchange()) -> - fun(() -> 'none' | pos_integer())). + fun((boolean()) -> 'none' | pos_integer())). -spec(peek_serial/1 :: (name()) -> pos_integer() | 'undefined'). -endif. |