Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge remote branch 'cloudant:3102-fix-return-value'
This closes #16

Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
  • Loading branch information
iilyak committed Sep 2, 2016
2 parents 68c6a0e + e984486 commit f6e4c5629a7d996d284e4489f1897c057823f846
Showing 1 changed file with 5 additions and 5 deletions.
@@ -56,7 +56,7 @@ handle_config_change("global_changes", "max_event_delay", MaxDelayStr, _, _) ->
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 @@ handle_config_change("global_changes", "max_write_delay", MaxDelayStr, _, _) ->
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.

0 comments on commit f6e4c56

Please sign in to comment.