Skip to content

Commit

Permalink
fix: ark manager inject
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoGathK committed Oct 21, 2022
1 parent 4cf2528 commit 1b018e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/provider/dynamic-data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ import { IClientMediator, IClientAdapter } from '@vodyani/core';
import { ArkManager } from './ark-manager';
import { ConfigProvider } from './config';

const b = ArkManager.getToken();

@Injectable()
export class AsyncDynamicDataSourceProvider<T = any, C = any> implements IClientMediator<T, C> {
private readonly clients = new Map<string, IClientAdapter<T, C>>();

private readonly keys = new Set<string>();

constructor(
@Inject(b)
@Inject(ArkManager.getToken())
private readonly config: ConfigProvider<C>,
) {}

Expand Down Expand Up @@ -62,7 +60,7 @@ export class DynamicDataSourceProvider<T = any, C = any> implements IClientMedia
private readonly keys = new Set<string>();

constructor(
@Inject(b)
@Inject(ArkManager.getToken())
private readonly config: ConfigProvider<C>,
) {}

Expand Down

0 comments on commit 1b018e6

Please sign in to comment.