Increase max op age to 80

This commit is contained in:
James Allen 2017-01-17 11:45:10 +01:00
parent 3b63865be9
commit 0705242a55

View file

@ -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