Skip to content

Commit 3afc67b

Browse files
committed
Revert unnecessary function addition
1 parent 0e9b333 commit 3afc67b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/rabbit_core_metrics_gc.erl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,9 @@ terminate(_Reason, #state{timer = TRef}) ->
5454
code_change(_OldVsn, State, _Extra) ->
5555
{ok, State}.
5656

57-
start_timer(Interval, #state{timer = TRef0} = St) ->
58-
timer:cancel(TRef0),
59-
TRef1 = erlang:send_after(Interval, self(), start_gc),
60-
St#state{timer = TRef1}.
61-
6257
start_timer(#state{interval = Interval} = St) ->
63-
start_timer(Interval, St).
58+
TRef = erlang:send_after(Interval, self(), start_gc),
59+
St#state{timer = TRef}.
6460

6561
gc_connections() ->
6662
gc_process(connection_created),

0 commit comments

Comments
 (0)