Comparing version 0.8.3 to 0.8.4
@@ -49,13 +49,2 @@ var ot = require('./ot'); | ||
if (request.snapshot && snapshot.v === request.snapshot.v) { | ||
// If we keep fetching and getting the same snapshot, we could get stuck | ||
// in an infinite loop. Commit failures should only happen as a result | ||
// of a race condition with the snapshot version changing, so fail if | ||
// this ever happens | ||
var err = { | ||
code: 5000, | ||
message: 'Op submit failed. Retry returned same snapshot version twice' | ||
}; | ||
return callback(err); | ||
} | ||
request.snapshot = snapshot; | ||
@@ -62,0 +51,0 @@ request._addSnapshotMeta(); |
{ | ||
"name": "sharedb", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "JSON OT database backend", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
238075
3672