diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-13 04:26:45 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-13 04:26:45 +0100 |
commit | 47f5b3df329ca7b75e0e090e9bd09338fe716b4d (patch) | |
tree | 20bd1e0f4f49a4131b1b9c5c3bc453481eeec562 /src/rabbit_limiter.erl | |
parent | 1f982ed96126acf6654bd9db7bed34f21556eaf4 (diff) | |
download | rabbitmq-server-47f5b3df329ca7b75e0e090e9bd09338fe716b4d.tar.gz |
use consistent return types for start/start_link functionsbug23120
Diffstat (limited to 'src/rabbit_limiter.erl')
-rw-r--r-- | src/rabbit_limiter.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_limiter.erl b/src/rabbit_limiter.erl index 813ccc75..9894a850 100644 --- a/src/rabbit_limiter.erl +++ b/src/rabbit_limiter.erl @@ -45,7 +45,8 @@ -type(maybe_pid() :: pid() | 'undefined'). --spec(start_link/2 :: (pid(), non_neg_integer()) -> rabbit_types:ok(pid())). +-spec(start_link/2 :: (pid(), non_neg_integer()) -> + rabbit_types:ok_pid_or_error()). -spec(shutdown/1 :: (maybe_pid()) -> 'ok'). -spec(limit/2 :: (maybe_pid(), non_neg_integer()) -> 'ok' | 'stopped'). -spec(can_send/3 :: (maybe_pid(), pid(), boolean()) -> boolean()). |