Only enable statistics service from node master process.

fixes #460
This commit is contained in:
softsimon 2021-04-19 21:39:30 +04:00
parent d74677628b
commit cdbe90c182
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -81,7 +81,7 @@ class Server {
await checkDbConnection();
}
if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED) {
if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED && cluster.isMaster) {
statistics.startStatistics();
}