Merge pull request #9 from cloudant/use-cast-for-ioq2-update_config
Use cast to send `update_config` to `ioq2`
diff --git a/src/ioq_sup.erl b/src/ioq_sup.erl
index 3e9a494..8bfda77 100644
--- a/src/ioq_sup.erl
+++ b/src/ioq_sup.erl
@@ -59,7 +59,7 @@
{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 @@
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.