diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-07-27 11:09:03 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-07-27 11:09:03 +0100 |
commit | a172d18a367178c66da64437e6c5d2740859ce7b (patch) | |
tree | eb0ebcb5e8d679178fdb090d0c9a5b5a0012ad70 /src/rabbit_limiter.erl | |
parent | bdf102c7b44dca971fced0dfe75fa2a09b07f06b (diff) | |
download | rabbitmq-server-a172d18a367178c66da64437e6c5d2740859ce7b.tar.gz |
catch-all cases, not just undefined
Diffstat (limited to 'src/rabbit_limiter.erl')
-rw-r--r-- | src/rabbit_limiter.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_limiter.erl b/src/rabbit_limiter.erl index 476f0d79..da4af1b9 100644 --- a/src/rabbit_limiter.erl +++ b/src/rabbit_limiter.erl @@ -209,7 +209,7 @@ maybe_call(_, _Call, Default) -> maybe_cast(#token{pid = Pid, enabled = true}, Cast) -> gen_server2:cast(Pid, Cast); -maybe_cast(undefined, _Call) -> +maybe_cast(_, _Call) -> ok. limit_reached(#lim{prefetch_count = Limit, volume = Volume}) -> |