From 14159e346bfd7373c247e9d02ca31005ae92bbd4 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:26:26 +0800 Subject: [PATCH] fix: Use the wrong MetricsCtx --- api/clients/gateway_client.go | 2 +- api/clients/modules.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/clients/gateway_client.go b/api/clients/gateway_client.go index 3c48560f..d4843574 100644 --- a/api/clients/gateway_client.go +++ b/api/clients/gateway_client.go @@ -11,7 +11,7 @@ import ( "github.com/filecoin-project/venus-market/v2/minermgr" vCrypto "github.com/filecoin-project/venus/pkg/crypto" types2 "github.com/filecoin-project/venus/venus-shared/types" - "github.com/ipfs-force-community/venus-common-utils/metrics" + "github.com/ipfs-force-community/metrics" ) func newGatewayWalletClient(mctx metrics.MetricsCtx, mgr minermgr.IAddrMgr, nodeCfg *config.Signer) (ISinger, jsonrpc.ClientCloser, error) { diff --git a/api/clients/modules.go b/api/clients/modules.go index 4dd3a678..ec3bdd74 100644 --- a/api/clients/modules.go +++ b/api/clients/modules.go @@ -9,8 +9,8 @@ import ( v1api "github.com/filecoin-project/venus/venus-shared/api/chain/v1" api "github.com/filecoin-project/venus/venus-shared/api/gateway/v1" types2 "github.com/filecoin-project/venus/venus-shared/types" + "github.com/ipfs-force-community/metrics" "github.com/ipfs-force-community/venus-common-utils/builder" - "github.com/ipfs-force-community/venus-common-utils/metrics" "github.com/ipfs-force-community/venus-gateway/marketevent" types3 "github.com/ipfs-force-community/venus-gateway/types" logging "github.com/ipfs/go-log/v2"