You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/10/18 00:16:45 UTC
couchdb-couch-epi git commit: Fix dialyzer warnings
Repository: couchdb-couch-epi
Updated Branches:
refs/heads/master be34447c5 -> c359a6900
Fix dialyzer warnings
This closes #9
This closes #13
Signed-off-by: Alexander Shorin <kx...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/commit/c359a690
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/tree/c359a690
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/diff/c359a690
Branch: refs/heads/master
Commit: c359a6900c193211a77004df9a31c2ad4bcddf9d
Parents: be34447
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Fri Oct 2 10:23:01 2015 -0700
Committer: Alexander Shorin <kx...@apache.org>
Committed: Sun Oct 18 01:14:36 2015 +0300
----------------------------------------------------------------------
src/couch_epi.erl | 5 +++--
src/couch_epi_functions_gen.erl | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/c359a690/src/couch_epi.erl
----------------------------------------------------------------------
diff --git a/src/couch_epi.erl b/src/couch_epi.erl
index 2754261..69f72a2 100644
--- a/src/couch_epi.erl
+++ b/src/couch_epi.erl
@@ -37,7 +37,8 @@
key/0,
handle/0,
plugin_id/0,
- data_spec/0
+ data_spec/0,
+ apply_opts/0
]).
-type app() :: atom().
@@ -128,7 +129,7 @@ subscribers(Handle) when Handle /= undefined ->
couch_epi_data_gen:subscribers(Handle).
-spec apply(Handle :: handle(), ServiceId :: atom(), Function :: atom(),
- Args :: [term()], Opts :: apply_opts()) -> ok.
+ Args :: [term()], Opts :: apply_opts()) -> [any()].
apply(Handle, ServiceId, Function, Args, Opts) when Handle /= undefined ->
couch_epi_functions_gen:apply(Handle, ServiceId, Function, Args, Opts).
http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/c359a690/src/couch_epi_functions_gen.erl
----------------------------------------------------------------------
diff --git a/src/couch_epi_functions_gen.erl b/src/couch_epi_functions_gen.erl
index 4990b60..311dd62 100644
--- a/src/couch_epi_functions_gen.erl
+++ b/src/couch_epi_functions_gen.erl
@@ -44,7 +44,7 @@ apply(ServiceId, Function, Args, Opts) when is_atom(ServiceId) ->
apply(get_handle(ServiceId), ServiceId, Function, Args, Opts).
-spec apply(Handle :: atom(), ServiceId :: atom(), Function :: atom(),
- Args :: [term()], Opts :: couch_epi:apply_opts()) -> ok.
+ Args :: [term()], Opts :: couch_epi:apply_opts()) -> [any()].
apply(Handle, _ServiceId, Function, Args, Opts) ->
DispatchOpts = parse_opts(Opts),