Skip to content
Browse files

Removing dumb errors

  • Loading branch information...
1 parent a0f8571 commit 7f0827d1b61afeaef8b8bd621c4f01e7cdd540ca @ferd ferd committed with Feb 28, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/statsderl.erl
  2. +1 −1 src/statsderl_sup.erl
View
4 src/statsderl.erl
@@ -70,8 +70,8 @@ init(BaseKey) ->
handle_call(_Request, _From, State) ->
{noreply, ok, State}.
-handle_cast({udp_send, Stats = #state{basekey=BaseKey}},
- #state{hostname=Hostname, port=Port, socket=Socket}=State) ->
+handle_cast({udp_send, Stats},
+ #state{hostname=Hostname, port=Port, socket=Socket, basekey=BaseKey}=State) ->
gen_udp:send(Socket, Hostname, Port, [BaseKey, Stats]),
decrease_backlog(),
{noreply, State};
View
2 src/statsderl_sup.erl
@@ -29,7 +29,7 @@ start_link() ->
%% ===================================================================
init(BaseKey) ->
- {ok, { {one_for_one, 5, 10}, [?CHILD(statsderl, worker, BaseKey)]} }.
+ {ok, { {one_for_one, 5, 10}, [?CHILD(statsderl, worker, [BaseKey])]} }.
%% ------------------------------------------------------------------
%% Internal Function Definitions

0 comments on commit 7f0827d

Please sign in to comment.
Something went wrong with that request. Please try again.