NodeJS cluster fix: Only save disk cache to disk when master.

fixes #108
This commit is contained in:
softsimon
2020-09-22 04:07:47 +07:00
parent 347ab1e220
commit 6d67fbde84
2 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,6 @@ import * as http from 'http';
import * as https from 'https';
import * as WebSocket from 'ws';
import * as cluster from 'cluster';
import * as os from 'os';
import { checkDbConnection } from './database';
import routes from './routes';