diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-06 11:31:18 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-06 11:31:18 +0100 |
commit | 12806334fb5123f8a2229cc28951cd51c9ba5e3c (patch) | |
tree | 02ddf78e0652dabf28fafafeaf9430290e5b082a /src/rabbit_net.erl | |
parent | fc87714e04dd900355cc68c72ad6d7b854838245 (diff) | |
download | rabbitmq-server-12806334fb5123f8a2229cc28951cd51c9ba5e3c.tar.gz |
{'ok' | error(...)} -> rabbit_types:ok_or_error(...)
Diffstat (limited to 'src/rabbit_net.erl')
-rw-r--r-- | src/rabbit_net.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_net.erl b/src/rabbit_net.erl index e1c77e29..cd0ea7d6 100644 --- a/src/rabbit_net.erl +++ b/src/rabbit_net.erl @@ -47,10 +47,10 @@ -type(socket() :: rabbit_networking:ip_port() | rabbit_types:ssl_socket()). -spec(async_recv/3 :: (socket(), integer(), timeout()) -> {'ok', any()}). --spec(close/1 :: (socket()) -> 'ok' | error()). --spec(controlling_process/2 :: (socket(), pid()) -> 'ok' | error()). +-spec(close/1 :: (socket()) -> rabbit_types:ok_or_error(any())). +-spec(controlling_process/2 :: (socket(), pid()) -> rabbit_types:ok_or_error(any())). -spec(port_command/2 :: (socket(), iolist()) -> 'true'). --spec(send/2 :: (socket(), binary() | iolist()) -> 'ok' | error()). +-spec(send/2 :: (socket(), binary() | iolist()) -> rabbit_types:ok_or_error(any())). -spec(peername/1 :: (socket()) -> {'ok', {inet:ip_address(), rabbit_networking:ip_port()}} | error()). -spec(sockname/1 :: (socket()) -> |