Skip to content

Commit

Permalink
(#4100) - remove uptodate
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored and daleharvey committed Aug 2, 2015
1 parent a0a8ff3 commit 937ef1f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions docs/_includes/api/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
* __`active`__ - This event fires when the replication starts actively processing changes; e.g. when it recovers from an error or new changes are available.
* __`denied`__ (`err`) - This event fires if a document failed to replicate due to validation or authorization errors.
* __`error`__ (`err`) - This event is fired when the replication is stopped due to an unrecoverable failure. If `retry` is `false`, this will also fire when the user goes offline or another network error occurs (so you can handle retries yourself, if you want).
* __`uptodate`__ (*deprecated*) - This event fires when a live replication has caught up and is waiting on future changes. This should be replaced by using the `paused` event.

#### Single-shot

Expand Down Expand Up @@ -296,4 +295,4 @@

The first time a request fails, this function will receive 0 as input. The next time it fails, 1000 will be passed in, then 3000, then 9000, etc. When the user comes back online, the `delay` goes back to 0.

By default, PouchDB uses a backoff function that chooses a random starting number between 0 and 2000 milliseconds and will roughly double every time, with some randommness to prevent client requests from occurring simultaneously.
By default, PouchDB uses a backoff function that chooses a random starting number between 0 and 2000 milliseconds and will roughly double every time, with some randommness to prevent client requests from occurring simultaneously.
1 change: 0 additions & 1 deletion lib/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function Changes(db, opts, callback) {
}
self.emit('change', change);
if (self.startSeq && self.startSeq <= change.seq) {
self.emit('uptodate');
self.startSeq = false;
}
if (change.deleted) {
Expand Down
1 change: 0 additions & 1 deletion lib/replicate/replicate.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ function replicate(src, target, opts, returnValue, result) {
if ((continuous && changesOpts.live) || changesCompleted) {
returnValue.state = 'pending';
returnValue.emit('paused');
returnValue.emit('uptodate', result);
}
if (changesCompleted) {
completeReplication();
Expand Down

0 comments on commit 937ef1f

Please sign in to comment.