Browse files

Oops. code_change should return {ok, State}.

  • Loading branch information...
1 parent ec891b5 commit 416a4007733adfbc6c5d4a9c6d78356b6db76eee @tonyg committed Apr 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/rfc4627_jsonrpc_registry.erl
  2. +1 −1 test/test_jsonrpc_inets.erl
View
2 src/rfc4627_jsonrpc_registry.erl
@@ -53,7 +53,7 @@ terminate(_Reason, _State) ->
%% @doc gen_server behaviour callback.
code_change(_OldVsn, State, _Extra) ->
- State.
+ {ok, State}.
%% @doc gen_server behaviour callback.
handle_call({lookup_service, Service}, _From, State) ->
View
2 test/test_jsonrpc_inets.erl
@@ -66,7 +66,7 @@ terminate(_Reason, _State) ->
ok.
code_change(_OldVsn, State, _Extra) ->
- State.
+ {ok, State}.
handle_call({jsonrpc, <<"test_proc">>, _ModData, [Value]}, _From, State) ->
{reply, {result, <<"ErlangServer: ", Value/binary>>}, State};

0 comments on commit 416a400

Please sign in to comment.