Skip to content

Commit

Permalink
Oops. code_change should return {ok, State}.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyg committed Apr 27, 2012
1 parent ec891b5 commit 416a400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rfc4627_jsonrpc_registry.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down
2 changes: 1 addition & 1 deletion test/test_jsonrpc_inets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 416a400

Please sign in to comment.