mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
reduce connections
This commit is contained in:
parent
c39de1387b
commit
8657ffec78
@ -16,7 +16,7 @@ import { StratumV1JobsService } from './stratum-v1-jobs.service';
|
||||
@Injectable()
|
||||
export class StratumV1Service implements OnModuleInit {
|
||||
|
||||
private maxConnections = 100;
|
||||
private maxConnections = 50;
|
||||
private currentConnections = 0;
|
||||
|
||||
constructor(
|
||||
@ -34,7 +34,7 @@ export class StratumV1Service implements OnModuleInit {
|
||||
|
||||
@Interval(1000 * 30)
|
||||
public async incrementConnections() {
|
||||
this.maxConnections += 100;
|
||||
this.maxConnections += 50;
|
||||
}
|
||||
|
||||
async onModuleInit(): Promise<void> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user