Skip to content

Commit

Permalink
added optional dbName in header for tls
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuri98 committed Sep 10, 2024
1 parent 384610e commit 6a21cbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/milvus/milvus.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class MilvusService {
if (process.env.SERVER_NAME) {
clientConfig.tls.serverName = process.env.SERVER_NAME;
}

if (process.env.DB_NAME) {
clientConfig.database = process.env.DB_NAME;
}
}
// create the client
const milvusClient: MilvusClient = new MilvusClient(clientConfig);
Expand Down

0 comments on commit 6a21cbd

Please sign in to comment.