Skip to content

Commit 40ca6d2

Browse files
committed
fix clientConfig
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
1 parent cea32b3 commit 40ca6d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

milvus/grpc/GrpcClient.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export class GRPCClient extends User {
4949
) {
5050
// setup the configuration
5151
super(configOrAddress, ssl, username, password, channelOptions);
52-
5352

5453
// Get the gRPC service for Milvus
5554
const MilvusService = getGRPCService({
@@ -133,9 +132,9 @@ export class GRPCClient extends User {
133132
});
134133
},
135134
},
136-
{
137-
max: this.config.pool?.max ?? DEFAULT_POOL_MAX, // maximum size of the pool
138-
min: this.config.pool?.min ?? DEFAULT_POOL_MIN, // minimum size of the pool
135+
this.config.pool ?? {
136+
min: DEFAULT_POOL_MIN,
137+
max: DEFAULT_POOL_MAX,
139138
}
140139
);
141140
}

0 commit comments

Comments
 (0)