Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: nameczz <[email protected]>
  • Loading branch information
nameczz committed Dec 24, 2021
1 parent d4bd47c commit 90d1d51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions express/src/middlewares/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export const ReqHeaderMiddleware = (
// server will set activeaddress in milvus service.
const milvusAddress = (req.headers[MILVUS_ADDRESS] as string) || '';

/**
* only api request has MILVUS_ADDRESS.
* When client run in express, we dont need static files like: xx.js run this logic.
* Otherwise will cause 401 error.
* */

// only api request has MILVUS_ADDRESS.
// When client run in express, we dont need static files like: xx.js run this logic.
// Otherwise will cause 401 error.

if (milvusAddress && insightCache.has(milvusAddress)) {
MilvusService.activeAddress = milvusAddress;
// insight cache will update expire time when use insightCache.get
Expand Down

0 comments on commit 90d1d51

Please sign in to comment.