This commit is contained in:
Aiden McClelland
2024-03-11 17:12:18 -06:00

View File

@@ -152,12 +152,6 @@ export class PatchDB<T extends { [key: string]: any }> {
if (this.isRevision(update)) { if (this.isRevision(update)) {
const expected = cache.sequence + 1 const expected = cache.sequence + 1
if (update.id < expected) return if (update.id < expected) return
if (update.id > expected) {
return console.error(
// unreachable
`Received futuristic revision. Expected ${expected}, got ${update.id}`,
)
}
this.handleRevision(update, cache) this.handleRevision(update, cache)
} else { } else {
this.handleDump(update, cache) this.handleDump(update, cache)