diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-11-12 16:51:18 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-11-12 16:51:18 +0000 |
commit | 7174bb59f32ffe4fe1db6fb7f653e90d4f989f93 (patch) | |
tree | 4ce7ef9bf9577e02e2f1be1ea9e709f5088d28f2 | |
parent | 3e422eca2856eb6ef64e1f0ab8019c11c8c12e5f (diff) | |
download | rabbitmq-server-7174bb59f32ffe4fe1db6fb7f653e90d4f989f93.tar.gz |
Remove define, change message, silence dialyser.
-rw-r--r-- | src/background_gc.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/background_gc.erl b/src/background_gc.erl index e053a677..d781a290 100644 --- a/src/background_gc.erl +++ b/src/background_gc.erl @@ -28,7 +28,6 @@ -define(MAX_RATIO, 0.01). -define(IDEAL_INTERVAL, 60000). --define(MIN_BYTES, 50000). -record(state, {last_interval}). @@ -48,7 +47,7 @@ start_link() -> [{timeout, infinity}]). run() -> - gen_server2:cast(?MODULE, gc_all). + gen_server2:cast(?MODULE, run). %%---------------------------------------------------------------------------- @@ -57,9 +56,9 @@ init([]) -> {backoff, ?HIBERNATE_AFTER_MIN, ?HIBERNATE_AFTER_MIN, ?DESIRED_HIBERNATE}}. handle_call(Msg, _From, State) -> - {stop, {unexpected_call, Msg}, State}. + {stop, {unexpected_call, Msg}, {unexpected_call, Msg}, State}. -handle_cast(gc_all, State) -> +handle_cast(run, State) -> do_gc(), {noreply, State, hibernate}; |