mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #17525 from overleaf/ae-upgrade-prettier
Upgrade Prettier to v3 GitOrigin-RevId: 6f1338f196408f3edb4892d5220ad3665ff1a5bc
This commit is contained in:
@@ -74,9 +74,8 @@ const UpdateManager = {
|
||||
doc_id: docId,
|
||||
})
|
||||
|
||||
const updates = await RealTimeRedisManager.promises.getPendingUpdatesForDoc(
|
||||
docId
|
||||
)
|
||||
const updates =
|
||||
await RealTimeRedisManager.promises.getPendingUpdatesForDoc(docId)
|
||||
logger.debug(
|
||||
{ projectId, docId, count: updates.length },
|
||||
'processing updates'
|
||||
|
||||
@@ -129,8 +129,8 @@ type._takeDoc = takeDoc = function (
|
||||
? part.slice(position.offset, position.offset + maxlength)
|
||||
: part.slice(position.offset)
|
||||
: maxlength === undefined || tombsIndivisible
|
||||
? part - position.offset
|
||||
: Math.min(maxlength, part - position.offset)
|
||||
? part - position.offset
|
||||
: Math.min(maxlength, part - position.offset)
|
||||
|
||||
const resultLen = result.length || result
|
||||
|
||||
|
||||
@@ -162,9 +162,12 @@ class StressTestClient {
|
||||
continue() {
|
||||
if (this.updateCount > 0) {
|
||||
this.updateCount--
|
||||
return setTimeout(() => {
|
||||
return this.sendUpdate()
|
||||
}, this.options.updateDelay * (0.5 + Math.random()))
|
||||
return setTimeout(
|
||||
() => {
|
||||
return this.sendUpdate()
|
||||
},
|
||||
this.options.updateDelay * (0.5 + Math.random())
|
||||
)
|
||||
} else {
|
||||
return this.updateCallback()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user