summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-02-21 11:21:09 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-02-21 11:21:09 +0000
commitf977d37da50bce8c8863a28d1a90534e8b486275 (patch)
tree15054daa33b8f994e15d12c36bc5c2d35ff4f753
parent9021c5f19412a0fa086d60c5ef271ed4e59558e5 (diff)
downloadrabbitmq-server-f977d37da50bce8c8863a28d1a90534e8b486275.tar.gz
whitespace
-rw-r--r--src/file_handle_cache.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index 7c548bdc..f41815d0 100644
--- a/src/file_handle_cache.erl
+++ b/src/file_handle_cache.erl
@@ -889,13 +889,16 @@ handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count,
false ->
{noreply, run_pending_item(Item, State)}
end;
+
handle_call({set_limit, Limit}, _From, State) ->
{reply, ok, maybe_reduce(
process_pending(State #fhc_state {
limit = Limit,
obtain_limit = obtain_limit(Limit) }))};
+
handle_call(get_limit, _From, State = #fhc_state { limit = Limit }) ->
{reply, Limit, State};
+
handle_call({info, Items}, _From, State) ->
{reply, infos(Items, State), State}.