浏览代码

fix comment format

Signed-off-by: nameczz <zizhao.chen@zilliz.com>
nameczz 3 年之前
父节点
当前提交
bf1cad470d
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      express/src/middlewares/index.ts

+ 3 - 5
express/src/middlewares/index.ts

@@ -14,11 +14,9 @@ export const ReqHeaderMiddleware = (
   // all ape requests need set milvus address in header.
   // 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