This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 4976f49 Use callbacks for couch_event_listener behavior
4976f49 is described below
commit 4976f49c82c36155b6b466697de04a284b8829d7
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Thu Feb 15 10:36:06 2018 -0500
Use callbacks for couch_event_listener behavior
This knocks out a few dialyzer errors
---
src/couch_event/src/couch_event_listener.erl | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/couch_event/src/couch_event_listener.erl
b/src/couch_event/src/couch_event_listener.erl
index 9d4c8da..a9ed331 100644
--- a/src/couch_event/src/couch_event_listener.erl
+++ b/src/couch_event/src/couch_event_listener.erl
@@ -23,10 +23,6 @@
]).
-export([
- behaviour_info/1
-]).
-
--export([
do_init/3,
loop/2
]).
@@ -38,16 +34,20 @@
}).
-behaviour_info(callbacks) ->
- [
- {init,1},
- {terminate,2},
- {handle_cast,2},
- {handle_event,3},
- {handle_info,2}
- ];
-behaviour_info(_) ->
- undefined.
+-callback init(Arg :: term()) ->
+ term().
+
+-callback terminate(Reason :: term(), State :: term()) ->
+ term().
+
+-callback handle_cast(Message :: term(), State :: term()) ->
+ term().
+
+-callback handle_event(DbName :: term(), Event :: term(), State :: term()) ->
+ term().
+
+-callback handle_info(Message :: term(), State :: term()) ->
+ term().
start(Mod, Arg, Options) ->
--
To stop receiving notification emails like this one, please contact
[email protected].