Initial proxy manager refactor
This commit is contained in:
parent
84cb14680b
commit
da916222c1
6 changed files with 58 additions and 37 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
import { getLogger } from '@stock-bot/logger';
|
||||
import { HttpClient, type ProxyInfo } from '@stock-bot/http';
|
||||
import { proxyManager } from '@stock-bot/utils';
|
||||
import { ProxyManager } from '@stock-bot/utils';
|
||||
|
||||
const logger = getLogger('webshare-tasks');
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ export async function validateStoredProxies(): Promise<{
|
|||
const testUrl = 'https://httpbin.org/ip'; // Simple IP echo service
|
||||
|
||||
// Get all proxies from proxy manager
|
||||
const allProxies = await proxyManager.getAllProxies();
|
||||
const allProxies = ProxyManager.getInstance().getAllProxies();
|
||||
|
||||
if (allProxies.length === 0) {
|
||||
logger.warn('No proxies available for validation');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue