summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-04-15 13:33:36 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-04-15 13:33:36 +0100
commiteffab8c369e7427883687f367871befb86422b71 (patch)
treee8ac9055e123424f814869fa10fa3af4b1a09973
parent9dc2bed83820ef17e9257177fe3d06a2ec7c038c (diff)
downloadrabbitmq-server-bug24050.tar.gz
Symmetry, specs.bug24050
-rw-r--r--src/rabbit_direct.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index df422c15..0dac18d1 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -26,7 +26,7 @@
-spec(boot/0 :: () -> 'ok').
-spec(connect/5 :: (binary(), binary(), binary(), rabbit_types:protocol(),
- term()) ->
+ rabbit_event:event_props()) ->
{'ok', {rabbit_types:user(),
rabbit_framing:amqp_table()}}).
-spec(start_channel/8 ::
@@ -34,7 +34,7 @@
rabbit_types:user(), rabbit_types:vhost(), rabbit_framing:amqp_table(),
pid()) -> {'ok', pid()}).
--spec(disconnect/1 :: (pid()) -> 'ok').
+-spec(disconnect/1 :: (rabbit_event:event_props()) -> 'ok').
-endif.
@@ -82,5 +82,5 @@ start_channel(Number, ClientChannelPid, ConnPid, Protocol, User, VHost,
Capabilities, Collector}]),
{ok, ChannelPid}.
-disconnect(Pid) ->
- rabbit_event:notify(connection_closed, [{pid, Pid}]).
+disconnect(Infos) ->
+ rabbit_event:notify(connection_closed, Infos).