diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2018-02-15 10:36:06 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2018-02-15 16:59:54 -0500 |
commit | 4976f49c82c36155b6b466697de04a284b8829d7 (patch) | |
tree | f5fc245388857c7498a08f68b52c7005e0ba1aee | |
parent | 6cd62c2bd514de0e59d0327ec09363dcef38bb08 (diff) | |
download | couchdb-4976f49c82c36155b6b466697de04a284b8829d7.tar.gz |
Use callbacks for couch_event_listener behavior
This knocks out a few dialyzer errors
-rw-r--r-- | src/couch_event/src/couch_event_listener.erl | 28 |
1 files 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 9d4c8da3a..a9ed33199 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) -> |