From 0705242a55b7011ebd5b2e98217673ff42109a94 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 17 Jan 2017 11:45:10 +0100 Subject: [PATCH] Increase max op age to 80 --- .../document-updater/app/coffee/ShareJsUpdateManager.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/ShareJsUpdateManager.coffee b/services/document-updater/app/coffee/ShareJsUpdateManager.coffee index 1d36776b9f..f175796467 100644 --- a/services/document-updater/app/coffee/ShareJsUpdateManager.coffee +++ b/services/document-updater/app/coffee/ShareJsUpdateManager.coffee @@ -11,10 +11,12 @@ WebRedisManager = require "./WebRedisManager" ShareJsModel:: = {} util.inherits ShareJsModel, EventEmitter +MAX_AGE_OF_OP = 80 + module.exports = ShareJsUpdateManager = getNewShareJsModel: (project_id, doc_id, lines, version) -> db = new ShareJsDB(project_id, doc_id, lines, version) - model = new ShareJsModel(db, maxDocLength: Settings.max_doc_length) + model = new ShareJsModel(db, maxDocLength: Settings.max_doc_length, maximumAge: MAX_AGE_OF_OP) model.db = db return model