This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git


The following commit(s) were added to refs/heads/master by this push:
     new 8dfe695  Use cast to send update_config to ioq2
     new 1b2f8ca  Merge pull request #9 from 
cloudant/use-cast-for-ioq2-update_config
8dfe695 is described below

commit 8dfe69544f3d209a9f6ae23f328acc37eb457939
Author: ILYA Khlopotov <iil...@apache.org>
AuthorDate: Tue Feb 19 20:11:23 2019 +0000

    Use cast to send update_config to ioq2
---
 src/ioq_sup.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 @@ 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.

Reply via email to