فهرست منبع

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