Merge remote branch 'cloudant:fix-type-spec'
This closes #24
Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
diff --git a/src/mem3_sync.erl b/src/mem3_sync.erl
index 88f4ad4..6401815 100644
--- a/src/mem3_sync.erl
+++ b/src/mem3_sync.erl
@@ -273,7 +273,8 @@
%% @doc Finds the next {DbName,Node} pair in the list of waiting replications
%% which does not correspond to an already running replication
--spec next_replication([#job{}], [#job{}], [#job{}]) -> {#job{}, [#job{}]} | nil.
+-spec next_replication([#job{}], queue:queue(_), queue:queue(_)) ->
+ {#job{}, queue:queue(_)} | nil.
next_replication(Active, Waiting, WaitingAndRunning) ->
case is_empty(Waiting) of
true ->