Merge remote branch 'cloudant:fix-spec-for-get_all_security'
This closes #51
Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
diff --git a/src/fabric.erl b/src/fabric.erl
index e568179..7e1223b 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -147,7 +147,7 @@
%% @doc retrieve the security object for all shards of a database
-spec get_all_security(dbname()) ->
- {ok, json_obj()} |
+ {ok, [{#shard{}, json_obj()}]} |
{error, no_majority | timeout} |
{error, atom(), any()}.
get_all_security(DbName) ->
@@ -155,7 +155,7 @@
%% @doc retrieve the security object for all shards of a database
-spec get_all_security(dbname(), [option()]) ->
- {ok, json_obj()} |
+ {ok, [{#shard{}, json_obj()}]} |
{error, no_majority | timeout} |
{error, atom(), any()}.
get_all_security(DbName, Options) ->