remove dead code

This commit is contained in:
Benjamin Wilson
2024-07-03 14:28:28 -04:00
parent 76e2426c30
commit 917d312211
9 changed files with 2 additions and 299 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export class AppService implements OnModuleInit {
// //6Gb
// await this.dataSource.query(`PRAGMA mmap_size = 6000000000;`);
if (process.env.ENABLE_SOLO == 'true' && (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0')) {
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
setInterval(async () => {
await this.deleteOldStatistics();
-29
View File
@@ -1,29 +0,0 @@
import { Injectable, OnModuleInit } from '@nestjs/common';
import { Server, Socket } from 'net';
import { ProxyClient } from '../models/ProxyClient';
@Injectable()
export class ProxyService implements OnModuleInit {
constructor() {
}
async onModuleInit(): Promise<void> {
if (process.env.ENABLE_PROXY == 'true') {
console.log('Connecting to braiins');
const proxyServer = new Server(async (socket: Socket) => {
const proxyClient = new ProxyClient(socket);
});
proxyServer.listen(process.env.PROXY_PORT, () => {
console.log(`Proxy server is listening on port ${process.env.PROXY_PORT}`);
});
}
}
}
-3
View File
@@ -30,8 +30,6 @@ export class StratumV1Service implements OnModuleInit {
async onModuleInit(): Promise<void> {
if (process.env.ENABLE_SOLO == 'true') {
//await this.clientStatisticsService.deleteAll();
if (process.env.NODE_APP_INSTANCE == '0') {
await this.clientService.deleteAll();
}
@@ -39,7 +37,6 @@ export class StratumV1Service implements OnModuleInit {
this.startSocketServer();
}, 1000 * 10)
}
}
private startSocketServer() {