mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:42:55 +00:00
Increase max op age to 80
This commit is contained in:
parent
3b63865be9
commit
0705242a55
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue