Remove unused variables (#3906)
This commit is contained in:
parent
6fbb3841a6
commit
eff9416469
63 changed files with 60 additions and 182 deletions
|
@ -242,7 +242,7 @@ const startWorker = (workerId) => {
|
|||
accountFromRequest(req, next);
|
||||
};
|
||||
|
||||
const errorMiddleware = (err, req, res, next) => {
|
||||
const errorMiddleware = (err, req, res) => {
|
||||
log.error(req.requestId, err.toString());
|
||||
res.writeHead(err.statusCode || 500, { 'Content-Type': 'application/json' });
|
||||
res.end(JSON.stringify({ error: err.statusCode ? err.toString() : 'An unexpected error occurred' }));
|
||||
|
@ -366,7 +366,7 @@ const startWorker = (workerId) => {
|
|||
}
|
||||
});
|
||||
|
||||
ws.on('error', e => {
|
||||
ws.on('error', () => {
|
||||
log.verbose(req.requestId, `Ending stream for ${req.accountId}`);
|
||||
unsubscribe(id, listener);
|
||||
if (closeHandler) {
|
||||
|
@ -443,7 +443,7 @@ const startWorker = (workerId) => {
|
|||
}
|
||||
});
|
||||
|
||||
const wsInterval = setInterval(() => {
|
||||
setInterval(() => {
|
||||
wss.clients.forEach(ws => {
|
||||
if (ws.isAlive === false) {
|
||||
ws.terminate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue