couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [35/50] couch-replicator commit: updated refs/heads/63012-scheduler to 27a5eae
Date Tue, 14 Mar 2017 19:26:30 GMT
Fix add_job/1 spec for scheduler

add_job/1 doesn't return `{error, already_added}` anymore so fix spec to
conform.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/73d17368
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/73d17368
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/73d17368

Branch: refs/heads/63012-scheduler
Commit: 73d173687909adf482a2222f22d9e764728eb843
Parents: 32d43df
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Wed Dec 7 20:47:29 2016 -0500
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Wed Jan 11 14:58:33 2017 -0500

----------------------------------------------------------------------
 src/couch_replicator_scheduler.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/73d17368/src/couch_replicator_scheduler.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_scheduler.erl b/src/couch_replicator_scheduler.erl
index af2262b..a741a9f 100644
--- a/src/couch_replicator_scheduler.erl
+++ b/src/couch_replicator_scheduler.erl
@@ -74,7 +74,7 @@ start_link() ->
     gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
 
 
--spec add_job(#rep{}) -> ok | {error, already_added}.
+-spec add_job(#rep{}) -> ok.
 add_job(#rep{} = Rep) when Rep#rep.id /= undefined ->
     Job = #job{
         id = Rep#rep.id,


Mime
View raw message