Skip to content

Commit

Permalink
increase timeouts to 35s
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadzurami committed Jun 22, 2023
1 parent 15efdc1 commit 57433ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/proxies/proxies.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Proxy } from '../../interfaces/proxy.interface';
@Injectable()
export class ProxiesService {
private readonly proxies: Map<string, Proxy> = new Map();
private readonly throttledProxies = new Cache<string, Proxy>({ ttl: 18 * 1000 + 1000 });
private readonly throttledProxies = new Cache<string, Proxy>({ ttl: 35 * 1000 + 1000 });
private readonly proxiesUsageQueue = new pQueue({ concurrency: 1 });

public setProxies(proxies: Proxy[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/steam-tokens/steam-tokens.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ProxiesService } from '../proxies/proxies.service';
@Injectable()
export class SteamTokensService {
private readonly logger = new Logger(SteamTokensService.name);
private readonly throttledConnections = new Cache<string, boolean>({ ttl: 18 * 1000 + 1000 });
private readonly throttledConnections = new Cache<string, boolean>({ ttl: 35 * 1000 + 1000 });

private refreshTokensPlatform: EAuthTokenPlatformType = EAuthTokenPlatformType.SteamClient;

Expand Down

0 comments on commit 57433ce

Please sign in to comment.