Skip to content

Commit

Permalink
code_change header was off
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Hueras committed Jan 19, 2015
1 parent ee107f8 commit a892ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/estatsd_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ handle_DOWN(_Node, State, _Election) ->
from_leader(_Synch, State, _Election) ->
{ok, State}.

code_change(_Either, OldState, _Extra) ->
code_change(_Either, OldState, _Extra, _Election) ->
NewState = init_state(),
NewState2 = NewState#state{
flush_timer = OldState#state.flush_timer,
Expand Down Expand Up @@ -362,7 +362,7 @@ do_report(All, Timers, Gauges, VM, CurrTime, State = #state{is_leader = true, de
%% Also graph the number of graphs we're graphing:
"statsd.num_stats ", estatsd_utils:num_to_str(NumStats), " ", TsStr, "\n"
],
spawn(fun() -> send_to_graphite(Mode, FinalMsg, GraphiteHost, GraphitePort) end),
spawn(fun() -> send_to_graphite(Mode, FinalMsg, GraphiteHost, GraphitePort) end)
end;
%% TODO: Make everything below this point less atrocious.
do_report(All, Timers, Gauges, VM, _CurrTime, _State = #state{is_leader = true, destination = Destination}) ->
Expand Down

0 comments on commit a892ddc

Please sign in to comment.