Merge remote branch 'cloudant:3102-fix-return-value'
This closes #16
Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
diff --git a/src/global_changes_sup.erl b/src/global_changes_sup.erl
index ff3b2e9..59a40f2 100644
--- a/src/global_changes_sup.erl
+++ b/src/global_changes_sup.erl
@@ -56,7 +56,7 @@
catch error:badarg ->
ok
end,
- ok;
+ {ok, nil};
handle_config_change("global_changes", "max_write_delay", MaxDelayStr, _, _) ->
try list_to_integer(MaxDelayStr) of
@@ -65,20 +65,20 @@
catch error:badarg ->
ok
end,
- ok;
+ {ok, nil};
handle_config_change("global_changes", "update_db", "false", _, _) ->
gen_server:cast(?LISTENER, {set_update_db, false}),
gen_server:cast(?SERVER, {set_update_db, false}),
- ok;
+ {ok, nil};
handle_config_change("global_changes", "update_db", _, _, _) ->
gen_server:cast(?LISTENER, {set_update_db, true}),
gen_server:cast(?SERVER, {set_update_db, true}),
- ok;
+ {ok, nil};
handle_config_change(_, _, _, _, _) ->
- ok.
+ {ok, nil}.
handle_config_terminate(_Server, _Reason, _State) ->
ok.