Przeglądaj źródła

移除可疑内容,尝试处理内存泄漏

龚成明 3 lat temu
rodzic
commit
e2ff9f5301
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2 1
      package.json
  2. 1 1
      scripts/core/pullAndPush.ts

+ 2 - 1
package.json

@@ -1,7 +1,8 @@
 {
   "scripts": {
     "hardhat": "hardhat",
-    "//": "npm run hardhat -- args0 args1"
+    "push": "npm run hardhat -- run ./scripts/push.ts",
+    "pushFromHead": "npm run hardhat -- run ./scripts/pushFromHead.ts"
   },
   "devDependencies": {
     "@nomicfoundation/hardhat-toolbox": "^2.0.0",

+ 1 - 1
scripts/core/pullAndPush.ts

@@ -286,7 +286,7 @@ export class PullAndPush {
             // 4. 过滤Lp
             if (await this.filterLp(lp)) {
               // 5. 将过滤后的Lp保存到二阶表
-              await this.saveLpToSwapPath(lp)
+              // await this.saveLpToSwapPath(lp)
               // 6. 保存筛选之后的的Token到TopToken表
               await this.saveToken(lp, 'topToken')
               // 7. 保存过滤后的Lp到TopLp