refactored data-service fully
This commit is contained in:
parent
5c3f02228d
commit
67833a2fd7
18 changed files with 952 additions and 904 deletions
|
|
@ -18,7 +18,7 @@ export function initializeProxyProvider() {
|
|||
'fetch-from-sources': createJobHandler(async () => {
|
||||
// Fetch proxies from all configured sources
|
||||
handlerLogger.info('Processing fetch proxies from sources request');
|
||||
const { fetchProxiesFromSources } = await import('./proxy.operations');
|
||||
const { fetchProxiesFromSources } = await import('./operations/fetch.operations');
|
||||
const { processItems } = await import('@stock-bot/queue');
|
||||
|
||||
// Fetch all proxies from sources
|
||||
|
|
@ -65,7 +65,7 @@ export function initializeProxyProvider() {
|
|||
handlerLogger.debug('Processing proxy check request', {
|
||||
proxy: `${payload.host}:${payload.port}`,
|
||||
});
|
||||
const { checkProxy } = await import('./proxy.operations');
|
||||
const { checkProxy } = await import('./operations/check.operations');
|
||||
return checkProxy(payload);
|
||||
}),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue