mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] fix eslint errors in app.js
This commit is contained in:
parent
c76bcb7732
commit
9c7bfe020c
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ const Metrics = require('metrics-sharelatex')
|
|||
const Settings = require('settings-sharelatex')
|
||||
Metrics.initialize(Settings.appName || 'real-time')
|
||||
const async = require('async')
|
||||
const _ = require('underscore')
|
||||
|
||||
const logger = require('logger-sharelatex')
|
||||
logger.initialize('real-time')
|
||||
|
@ -214,7 +213,7 @@ if (Settings.shutdownDrainTimeWindow != null) {
|
|||
}
|
||||
|
||||
if (Settings.continualPubsubTraffic) {
|
||||
console.log('continualPubsubTraffic enabled')
|
||||
logger.warn('continualPubsubTraffic enabled')
|
||||
|
||||
const pubsubClient = redis.createClient(Settings.redis.pubsub)
|
||||
const clusterClient = redis.createClient(Settings.redis.websessions)
|
||||
|
@ -239,7 +238,7 @@ if (Settings.continualPubsubTraffic) {
|
|||
}
|
||||
|
||||
var runPubSubTraffic = () =>
|
||||
async.map(['applied-ops', 'editor-events'], publishJob, (err) =>
|
||||
async.map(['applied-ops', 'editor-events'], publishJob, () =>
|
||||
setTimeout(runPubSubTraffic, 1000 * 20)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue