Skip to content

Commit f4014ab

Browse files
committed
Revisions: Increase count
The default revision collector grabs at most 30 revisions of an object from a bucket but the default numbers for the revision count and revision (ten) count are 60 and 100, respectively. This patch bumps up the number of revisions collected so that for apps without custom settings they can fetch all of the saved revisions. More thorough work is needed because we have a tradeoff between revision counts and latency in fetching them. If we could return the list of revisions repeatedly as new ones come in this would not be a problem.
1 parent 1622ade commit f4014ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simperium",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "A simperium client for node.js",
55
"main": "./lib/simperium/index.js",
66
"repository": {

src/simperium/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ LocalQueue.prototype.resendSentChanges = function() {
645645
function collectionRevisions( channel, id, callback ) {
646646
var expectedVersions = -1;
647647
var onGhostRetrieved = function( ghost ) {
648-
var version = Math.min( ghost.version, 30 );
648+
var version = Math.min( ghost.version, 160 );
649649
var i;
650650
expectedVersions = version;
651651

0 commit comments

Comments
 (0)