From 4437d95c57efc5dc967a8cfbe28f6c2bf712aad3 Mon Sep 17 00:00:00 2001 From: "ruiyi.jiang" Date: Sun, 8 Oct 2023 15:21:50 +0800 Subject: [PATCH 1/2] remove __dirname Signed-off-by: ruiyi.jiang --- milvus/grpc/BaseClient.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/milvus/grpc/BaseClient.ts b/milvus/grpc/BaseClient.ts index 337a6dd1..eed586c7 100644 --- a/milvus/grpc/BaseClient.ts +++ b/milvus/grpc/BaseClient.ts @@ -12,14 +12,8 @@ import { } from '../'; // path -const milvusProtoPath = path.resolve( - __dirname, - '../../proto/proto/milvus.proto' -); -const schemaProtoPath = path.resolve( - __dirname, - '../../proto/proto/schema.proto' -); +const milvusProtoPath = path.resolve('../../proto/proto/milvus.proto'); +const schemaProtoPath = path.resolve('../../proto/proto/schema.proto'); /** * Base gRPC client, setup all configuration here @@ -81,6 +75,8 @@ export class BaseClient { ) { let config: ClientConfig; + console.log(milvusProtoPath); + // If a configuration object is provided, use it. Otherwise, create a new object with the provided parameters. if (typeof configOrAddress === 'object') { config = configOrAddress; From a9f41e9150ad00a4f66a6631c1941031ddebbf7b Mon Sep 17 00:00:00 2001 From: "ruiyi.jiang" Date: Sun, 8 Oct 2023 15:22:58 +0800 Subject: [PATCH 2/2] remove console Signed-off-by: ruiyi.jiang --- milvus/grpc/BaseClient.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/milvus/grpc/BaseClient.ts b/milvus/grpc/BaseClient.ts index eed586c7..ff91990a 100644 --- a/milvus/grpc/BaseClient.ts +++ b/milvus/grpc/BaseClient.ts @@ -75,8 +75,6 @@ export class BaseClient { ) { let config: ClientConfig; - console.log(milvusProtoPath); - // If a configuration object is provided, use it. Otherwise, create a new object with the provided parameters. if (typeof configOrAddress === 'object') { config = configOrAddress;