removed http client for a simple fetch wrapper with logging in utils
This commit is contained in:
parent
89cbfb7848
commit
a07a71d92a
36 changed files with 100 additions and 1465 deletions
|
|
@ -18,10 +18,6 @@ export class DataIngestionServiceAdapter implements IServiceContainer {
|
|||
get logger() { return this.dataServices.logger; }
|
||||
get cache() { return this.dataServices.cache; }
|
||||
get queue() { return this.dataServices.queue; }
|
||||
get http() {
|
||||
// HTTP client not in current data services - will be added when needed
|
||||
return null;
|
||||
}
|
||||
get proxy(): any {
|
||||
// Proxy manager should be injected via Awilix container
|
||||
// This adapter is for legacy compatibility
|
||||
|
|
|
|||
|
|
@ -89,11 +89,6 @@ export function createServiceContainer(config: AppConfig): AwilixContainer {
|
|||
return manager;
|
||||
}).singleton(),
|
||||
|
||||
// HTTP client can be added here when decoupled
|
||||
httpClient: asFunction(() => {
|
||||
// TODO: Import and create HTTP client when decoupled
|
||||
return null;
|
||||
}).singleton(),
|
||||
|
||||
// MongoDB client with injected logger
|
||||
mongoClient: asFunction(({ mongoConfig, logger }) => {
|
||||
|
|
@ -152,7 +147,6 @@ export function createServiceContainer(config: AppConfig): AwilixContainer {
|
|||
logger: cradle.logger,
|
||||
cache: cradle.cache,
|
||||
proxy: cradle.proxyManager,
|
||||
http: cradle.httpClient,
|
||||
browser: cradle.browser,
|
||||
mongodb: cradle.mongoClient,
|
||||
postgres: cradle.postgresClient,
|
||||
|
|
@ -224,7 +218,6 @@ export interface ServiceCradle {
|
|||
logger: any;
|
||||
cache: CacheProvider;
|
||||
proxyManager: ProxyManager;
|
||||
httpClient: any;
|
||||
browser: any;
|
||||
mongoClient: any;
|
||||
postgresClient: any;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue