Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

receive malformed casts as a precaution

  • Loading branch information...
commit 9f4b7ad54d3f288d7bf6014a47bd332f0f6d8742 1 parent ccc622c
Richard Jones authored August 23, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  src/stetson_server.erl
3  src/stetson_server.erl
@@ -80,6 +80,9 @@ handle_cast({Type, Bucket, N}, State) ->
80 80
     {noreply, State};
81 81
 handle_cast({Type, Bucket, N, Rate}, State) ->
82 82
     ok = stat(State, Type, Bucket, N, Rate),
  83
+    {noreply, State};
  84
+handle_cast(Msg, State) ->
  85
+    error_logger:warning_msg("Unhandled cast to stetson_server: ~p",[Msg]),
83 86
     {noreply, State}.
84 87
 
85 88
 -spec handle_info(_Info, #s{}) -> {noreply, #s{}}.

0 notes on commit 9f4b7ad

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