diff options
| author | Alvaro Videla <alvaro@rabbitmq.com> | 2014-04-21 09:54:09 +0200 |
|---|---|---|
| committer | Alvaro Videla <alvaro@rabbitmq.com> | 2014-04-21 09:54:09 +0200 |
| commit | 149932f5f1f2d5209df925bfe39c099cdeefca05 (patch) | |
| tree | e11429d46e813b92527ebc807659f210181e5b44 /src | |
| parent | 9f7effa36d1efbc58c9e0785686f17e80f08ea85 (diff) | |
| download | rabbitmq-server-git-149932f5f1f2d5209df925bfe39c099cdeefca05.tar.gz | |
updates intercept callback type
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_channel_interceptor.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_misc.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel_interceptor.erl b/src/rabbit_channel_interceptor.erl index 1b6178c1f4..0dbdf5ac20 100644 --- a/src/rabbit_channel_interceptor.erl +++ b/src/rabbit_channel_interceptor.erl @@ -33,7 +33,7 @@ -callback description() -> [proplists:property()]. -callback intercept(original_method(), rabbit_types:vhost()) -> - rabbit_types:ok_or_error2(processed_method(), any()). + {ok, processed_method()} | rabbit_misc:channel_or_connection_exit(). %% Whether the interceptor wishes to intercept the amqp method -callback applies_to(intercept_method()) -> boolean(). diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 58e93a3f9e..18c07f86f1 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -81,7 +81,7 @@ -ifdef(use_specs). --export_type([resource_name/0, thunk/1]). +-export_type([resource_name/0, thunk/1, channel_or_connection_exit/0]). -type(ok_or_error() :: rabbit_types:ok_or_error(any())). -type(thunk(T) :: fun(() -> T)). |
