diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-06 14:08:31 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-06 14:08:31 +0000 |
commit | 46b2364ca49aa8c6a82c43c1f1aedf1109be42f4 (patch) | |
tree | 3b66b5158cd62e5dd75860ccdda3c30fe38bf511 | |
parent | e1d0b1f25c262564364b08bde8d8a36276c16eaa (diff) | |
download | rabbitmq-server-46b2364ca49aa8c6a82c43c1f1aedf1109be42f4.tar.gz |
yet more spec fixes
-rw-r--r-- | src/rabbit_binary_generator.erl | 7 | ||||
-rw-r--r-- | src/rabbit_writer.erl | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/rabbit_binary_generator.erl b/src/rabbit_binary_generator.erl index 722573c7..b2997ae2 100644 --- a/src/rabbit_binary_generator.erl +++ b/src/rabbit_binary_generator.erl @@ -75,9 +75,12 @@ rabbit_types:encoded_content()). -spec(clear_encoded_content/1 :: (rabbit_types:content()) -> rabbit_types:unencoded_content()). --spec(map_exception/3 :: (non_neg_integer(), rabbit_types:amqp_error(), +-spec(map_exception/3 :: (rabbit_channel:channel_number(), + rabbit_types:amqp_error() | any(), rabbit_types:protocol()) -> - {boolean(), non_neg_integer(), rabbit_framing:amqp_method()}). + {boolean(), + rabbit_channel:channel_number(), + rabbit_framing:amqp_method_record()}). -endif. diff --git a/src/rabbit_writer.erl b/src/rabbit_writer.erl index aa986e54..50bca390 100644 --- a/src/rabbit_writer.erl +++ b/src/rabbit_writer.erl @@ -62,9 +62,10 @@ (pid(), rabbit_framing:amqp_method_record(), rabbit_types:content()) -> 'ok'). -spec(send_command_sync/2 :: - (pid(), rabbit_framing:amqp_method()) -> 'ok'). + (pid(), rabbit_framing:amqp_method_record()) -> 'ok'). -spec(send_command_sync/3 :: - (pid(), rabbit_framing:amqp_method(), rabbit_types:content()) -> 'ok'). + (pid(), rabbit_framing:amqp_method_record(), rabbit_types:content()) + -> 'ok'). -spec(send_command_and_notify/5 :: (pid(), pid(), pid(), rabbit_framing:amqp_method_record(), rabbit_types:content()) |