This commit is contained in:
Benjamin Wilson
2025-02-26 00:24:34 -05:00
parent 34a27d0f2f
commit 74f5783dc3
+8 -7
View File
@@ -46,6 +46,13 @@ export class StratumV1Service implements OnModuleInit {
}); });
}, (10000)); }, (10000));
setInterval(() => {
console.log(`Socket stats: ${this.emptySocket} empty, ${this.socketTimeout} timeouts, ${this.normalClosure} normal closure, ${this.errorClosure} error closure`);
this.emptySocket = 0;
this.socketTimeout = 0;
this.normalClosure = 0;
this.errorClosure = 0;
}, 1000 * 60);
} }
@@ -116,13 +123,7 @@ export class StratumV1Service implements OnModuleInit {
console.log(`Stratum server is listening on port ${port}`); console.log(`Stratum server is listening on port ${port}`);
}); });
setInterval(() => {
console.log(`Socket stats: ${this.emptySocket} empty, ${this.socketTimeout} timeouts, ${this.normalClosure} normal closure, ${this.errorClosure} error closure`);
this.emptySocket = 0;
this.socketTimeout = 0;
this.normalClosure = 0;
this.errorClosure = 0;
}, 1000 * 60);
} }