Skip to content

Commit 0fa72b6

Browse files
committed
feature(microservices): use MsvcUtil as a class property
1 parent 4003514 commit 0fa72b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/microservices/client/client-proxy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export abstract class ClientProxy {
2525
public abstract close(): any;
2626

2727
protected routingMap = new Map<string, Function>();
28+
protected readonly msvcUtil = Utils.MsvcUtil;
2829

2930
public send<TResult = any, TInput = any>(
3031
pattern: any,
@@ -103,6 +104,6 @@ export abstract class ClientProxy {
103104
}
104105

105106
protected normalizePattern<T = any>(pattern: T): string {
106-
return Utils.MsvcUtil.transformPatternToRoute(pattern);
107+
return this.msvcUtil.transformPatternToRoute(pattern);
107108
}
108109
}

0 commit comments

Comments
 (0)