You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setTimeout(function() {
if (this.cachedOps[0] === op) this.cachedOps.shift();
}.bind(this),
this.cachedOpsTimeout)
After a this.cachedOps.length = 0 we could already clear them.
Running the unit tests take the time of the tests + the cachedOpsTimeout duration, it seams quite complicated to call destroy() on all docs when we close the sharedb server so at least it should be possible to redefine cachedOpsTimeout globaly.
The text was updated successfully, but these errors were encountered:
gkubisa
added a commit
to Teamwork/sharedb
that referenced
this issue
Jul 10, 2018
Expiring cached ops using setTimeout had its problems, so I now remove expired ops when new ops are cached, see Teamwork@0153d0f. This should be more efficient and friendlier for unit tests. Does it solve the problem for you?
The doc define a timeout for each of the op
this.cachedOps.length = 0
we could already clear them.The text was updated successfully, but these errors were encountered: