refactoring
This commit is contained in:
parent
3fb9df425c
commit
62a2f15dab
12 changed files with 670 additions and 13 deletions
|
|
@ -5,6 +5,7 @@
|
|||
import { getLogger } from '@stock-bot/logger';
|
||||
import { ConnectionFactory } from './connection-factory';
|
||||
import { PoolSizeCalculator } from './pool-size-calculator';
|
||||
import { ProxyManager } from '@stock-bot/proxy';
|
||||
import type {
|
||||
IDataIngestionServices,
|
||||
IServiceFactory,
|
||||
|
|
@ -44,6 +45,10 @@ export class DataIngestionServiceFactory implements IServiceFactory {
|
|||
this.createQueueConnection(connectionFactory, config)
|
||||
]);
|
||||
|
||||
// Initialize proxy manager
|
||||
logger.info('Initializing proxy manager...');
|
||||
await ProxyManager.initialize();
|
||||
|
||||
const services: IDataIngestionServices = {
|
||||
mongodb: mongoPool.client,
|
||||
postgres: postgresPool.client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue