From 66587492d1470aa701f1668b4ecc66a046821ea2 Mon Sep 17 00:00:00 2001 From: RetricSu Date: Tue, 23 Aug 2022 12:48:34 +0800 Subject: [PATCH] chore: rebase main with redis globalClient --- packages/api-server/src/methods/modules/poly.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api-server/src/methods/modules/poly.ts b/packages/api-server/src/methods/modules/poly.ts index 2d14b7b8..8ebbb255 100644 --- a/packages/api-server/src/methods/modules/poly.ts +++ b/packages/api-server/src/methods/modules/poly.ts @@ -9,6 +9,7 @@ import { Query } from "../../db"; import { ethTxHashToGwTxHash, gwTxHashToEthTxHash } from "../../cache/tx-hash"; import { middleware, validators } from "../validator"; import { MAX_ALLOW_SYNC_BLOCKS_DIFF } from "../constant"; +import { globalClient } from "../../cache/redis"; const { version: web3Version } = require("../../../package.json"); export class Poly { @@ -107,7 +108,7 @@ export class Poly { await Promise.all([ this.rpc.ping(), this.rpc.pingFullNode(), - this.cacheStore.client.PING(), + globalClient.PING(), this.query.isConnected(), this.syncBlocksDiff(), ]);