Переглянути джерело

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.
   // all ape requests need set milvus address in header.
   // server will set activeaddress in milvus service.
   // server will set activeaddress in milvus service.
   const milvusAddress = (req.headers[MILVUS_ADDRESS] as string) || '';
   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)) {
   if (milvusAddress && insightCache.has(milvusAddress)) {
     MilvusService.activeAddress = milvusAddress;
     MilvusService.activeAddress = milvusAddress;
     // insight cache will update expire time when use insightCache.get
     // insight cache will update expire time when use insightCache.get