Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: ruiyi.jiang <[email protected]>
  • Loading branch information
shanghaikid committed Jul 21, 2023
1 parent c905c9d commit ae4239a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/src/milvus/milvus.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,14 @@ export class MilvusService {

// don't break attu
await milvusClient.connectPromise.catch(error => {
cache.dump();
throw HttpErrors(HTTP_STATUS_CODE.FORBIDDEN, error);
});

// check healthy
const res = await milvusClient.checkHealth();

console.log('res', milvusAddress, res);

if (res.isHealthy) {
MilvusService.activeAddress = address;
cache.dump();
cache.set(address, milvusClient);
return { address };
} else {
Expand Down

0 comments on commit ae4239a

Please sign in to comment.