Repository: couchdb-config
Updated Branches:
  refs/heads/master b615eedb5 -> a83b75ef4


handle_event expected to return {ok, State}

Fix return value of handle_event callback.

COUCHDB-3102


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/58aee651
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/58aee651
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/58aee651

Branch: refs/heads/master
Commit: 58aee6517b6b7af0e88616a7820690d418b32d66
Parents: b615eed
Author: ILYA Khlopotov <[email protected]>
Authored: Wed Aug 24 12:01:43 2016 -0700
Committer: ILYA Khlopotov <[email protected]>
Committed: Wed Aug 24 12:21:01 2016 -0700

----------------------------------------------------------------------
 src/config_notifier.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/58aee651/src/config_notifier.erl
----------------------------------------------------------------------
diff --git a/src/config_notifier.erl b/src/config_notifier.erl
index 52fc4c0..6add8d6 100644
--- a/src/config_notifier.erl
+++ b/src/config_notifier.erl
@@ -45,7 +45,8 @@ init({Subscriber, Subscription}) ->
     {ok, {Subscriber, Subscription}}.
 
 handle_event({config_change, _, _, _, _} = Event, {Subscriber, Subscription}) 
->
-    maybe_notify(Event, Subscriber, Subscription).
+    maybe_notify(Event, Subscriber, Subscription),
+    {ok, {Subscriber, Subscription}}.
 
 handle_call(_Request, St) ->
     {ok, ignored, St}.

Reply via email to