diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-30 07:40:55 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-30 07:40:55 +0100 |
commit | 3418e5cf5e1de222d19c1984e9cad0fac2a90bf1 (patch) | |
tree | 5510246d866c5f5ce4c2faf1ae4cd196dada9d9f /src/rabbit_binding.erl | |
parent | 713ee0002753f3278b1a4198f7d7101a2e820007 (diff) | |
download | rabbitmq-server-3418e5cf5e1de222d19c1984e9cad0fac2a90bf1.tar.gz |
simplify: rabbit_misc:const/1 and thunk/1 types are identical
get rid of former
Diffstat (limited to 'src/rabbit_binding.erl')
-rw-r--r-- | src/rabbit_binding.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl index d1e6f220..534233c1 100644 --- a/src/rabbit_binding.erl +++ b/src/rabbit_binding.erl @@ -44,9 +44,9 @@ rabbit_types:exchange() | rabbit_types:amqqueue()) -> rabbit_types:ok_or_error(rabbit_types:amqp_error()))). -type(bindings() :: [rabbit_types:binding()]). --type(add_res() :: bind_res() | rabbit_misc:const(bind_res())). +-type(add_res() :: bind_res() | rabbit_misc:thunk(bind_res())). -type(bind_or_error() :: bind_res() | rabbit_types:error('binding_not_found')). --type(remove_res() :: bind_or_error() | rabbit_misc:const(bind_or_error())). +-type(remove_res() :: bind_or_error() | rabbit_misc:thunk(bind_or_error())). -opaque(deletions() :: dict()). @@ -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()) -> rabbit_misc:const('ok')). +-spec(process_deletions/1 :: (deletions()) -> rabbit_misc:thunk('ok')). -spec(combine_deletions/2 :: (deletions(), deletions()) -> deletions()). -spec(add_deletion/3 :: (rabbit_exchange:name(), {'undefined' | rabbit_types:exchange(), |