diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-05-19 16:05:02 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-05-19 16:05:02 +0100 |
commit | 531c99685c9f0cbf552aee8fc3416acbaf4b8b1e (patch) | |
tree | 44eb3c4d84ded6540ba94a25ce5218b2c0146fa8 | |
parent | e810f74607e8fd722d2df87334603db4672ab4f2 (diff) | |
download | rabbitmq-server-531c99685c9f0cbf552aee8fc3416acbaf4b8b1e.tar.gz |
Slightly tighter specs, tidy imports.
-rw-r--r-- | src/rabbit.erl | 4 | ||||
-rw-r--r-- | src/rabbit_channel.erl | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index bbe98789..9052f2f9 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -188,8 +188,8 @@ -spec(maybe_insert_default_data/0 :: () -> 'ok'). -spec(boot_delegate/0 :: () -> 'ok'). -spec(recover/0 :: () -> 'ok'). --spec(get_env/1 :: (atom()) -> any()). --spec(set_env/2 :: (atom(), any()) -> 'ok'). +-spec(get_env/1 :: (atom()) -> term()). +-spec(set_env/2 :: (atom(), term()) -> 'ok'). -spec(unset_env/1 :: (atom()) -> 'ok'). -endif. diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 301efb43..e5e61e56 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -22,8 +22,9 @@ -export([start_link/10, do/2, do/3, flush/1, shutdown/1]). -export([send_command/2, deliver/4, flushed/2, confirm/2]). --export([list/0, info_keys/0, info/1, info/2, info_all/0, info_all/1]). --export([emit_stats/1, ready_for_close/1, refresh_config_all/0]). +-export([list/0, info_keys/0, info/1, info/2, info_all/0, info_all/1, + refresh_config_all/0]). +-export([emit_stats/1, ready_for_close/1]). -export([init/1, terminate/2, code_change/3, handle_call/3, handle_cast/2, handle_info/2, handle_pre_hibernate/1, prioritise_call/3, |