mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
reduce connections
This commit is contained in:
@@ -16,7 +16,7 @@ import { StratumV1JobsService } from './stratum-v1-jobs.service';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class StratumV1Service implements OnModuleInit {
|
export class StratumV1Service implements OnModuleInit {
|
||||||
|
|
||||||
private maxConnections = 100;
|
private maxConnections = 50;
|
||||||
private currentConnections = 0;
|
private currentConnections = 0;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@@ -34,7 +34,7 @@ export class StratumV1Service implements OnModuleInit {
|
|||||||
|
|
||||||
@Interval(1000 * 30)
|
@Interval(1000 * 30)
|
||||||
public async incrementConnections() {
|
public async incrementConnections() {
|
||||||
this.maxConnections += 100;
|
this.maxConnections += 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
async onModuleInit(): Promise<void> {
|
async onModuleInit(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user