Skip to content
Permalink
Browse files
Merge pull request #9 from cloudant/use-cast-for-ioq2-update_config
Use cast to send `update_config` to `ioq2`
  • Loading branch information
iilyak committed Feb 21, 2019
2 parents 89fe01f + 8dfe695 commit 1b2f8ca0353b4f8a93eb2a1e226b0bdc04fb799a
Showing 1 changed file with 2 additions and 2 deletions.
@@ -59,7 +59,7 @@ handle_config_change("ioq", _Key, _Val, _Persist, St) ->
{ok, St};
handle_config_change("ioq2" ++ _, _Key, _Val, _Persist, St) ->
lists:foreach(fun({_Id, Pid}) ->
gen_server:call(Pid, update_config)
gen_server:cast(Pid, update_config)
end, processes(ioq2)),
{ok, St};
handle_config_change(_Sec, _Key, _Val, _Persist, St) ->
@@ -69,7 +69,7 @@ handle_config_terminate(_Server, _Reason, _State) ->
gen_server:cast(ioq_server, update_config),
spawn(fun() ->
lists:foreach(fun({_Id, Pid}) ->
gen_server:call(Pid, update_config)
gen_server:cast(Pid, update_config)
end, processes(ioq2))
end),
ok.

0 comments on commit 1b2f8ca

Please sign in to comment.