reorganized stuff
This commit is contained in:
parent
2bc46cdb2a
commit
8daaff27fd
6 changed files with 116 additions and 662 deletions
|
|
@ -2,7 +2,6 @@ import { Logger } from '@stock-bot/logger';
|
|||
import createCache, { type CacheProvider } from '@stock-bot/cache';
|
||||
import { HttpClient, ProxyInfo } from '@stock-bot/http';
|
||||
import pLimit from 'p-limit';
|
||||
import { queueService } from './queue.service';
|
||||
|
||||
export class ProxyService {
|
||||
private logger = new Logger('proxy-service');
|
||||
|
|
@ -83,7 +82,7 @@ export class ProxyService {
|
|||
|
||||
// Add queue integration methods
|
||||
async queueProxyFetch(): Promise<string> {
|
||||
const { queueManager } = await import('./queue-manager.service');
|
||||
const { queueManager } = await import('./queue.service');
|
||||
const job = await queueManager.addJob({
|
||||
type: 'proxy-fetch',
|
||||
service: 'proxy',
|
||||
|
|
@ -99,7 +98,7 @@ export class ProxyService {
|
|||
}
|
||||
|
||||
async queueProxyCheck(proxies: ProxyInfo[]): Promise<string> {
|
||||
const { queueManager } = await import('./queue-manager.service');
|
||||
const { queueManager } = await import('./queue.service');
|
||||
const job = await queueManager.addJob({
|
||||
type: 'proxy-check',
|
||||
service: 'proxy',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue