diff options
| author | Ben Hood <0x6e6562@gmail.com> | 2008-09-27 21:55:38 +0100 |
|---|---|---|
| committer | Ben Hood <0x6e6562@gmail.com> | 2008-09-27 21:55:38 +0100 |
| commit | 358f4d29e0355c366b93790282cef6e041dc910f (patch) | |
| tree | 5318dfa0024e8e65b18feca1a44d506c90e91555 | |
| parent | c24ce8446f5ca496bc9acaf23911dba8b75fb124 (diff) | |
| download | rabbitmq-server-git-358f4d29e0355c366b93790282cef6e041dc910f.tar.gz | |
Binned resource() type
| -rw-r--r-- | include/rabbit.hrl | 4 | ||||
| -rw-r--r-- | src/rabbit_misc.erl | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 00dc8b979c..0ab51b363e 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -84,10 +84,6 @@ -type(user() :: #user{username :: username(), password :: password()}). --type(resource() :: - #resource{virtual_host :: vhost(), - kind :: 'queue' | 'exchange', - name :: resource_name()}). -type(amqqueue() :: #amqqueue{name :: queue_name(), durable :: bool(), diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index e432db59e8..ad715cf742 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -68,7 +68,7 @@ -spec(get_config/2 :: (atom(), A) -> A). -spec(set_config/2 :: (atom(), any()) -> 'ok'). -spec(dirty_read/1 :: ({atom(), any()}) -> {'ok', any()} | not_found()). --spec(r/3 :: (vhost() | resource(), K, resource_name()) -> r(K) +-spec(r/3 :: (vhost() | r(atom()), K, resource_name()) -> r(K) when is_subtype(K, atom())). -spec(r/2 :: (vhost(), K) -> #resource{virtual_host :: vhost(), kind :: K, |
