From 77573aaceca5bf83d9372b42b64ccf8f11e24dbf Mon Sep 17 00:00:00 2001 From: lucas-dydx <76970939+lucas-dydx@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:49:29 -0400 Subject: [PATCH] Remove dupe CLOB prepare check state metric (#631) --- protocol/lib/metrics/constants.go | 1 - protocol/x/clob/abci.go | 7 ------- 2 files changed, 8 deletions(-) diff --git a/protocol/lib/metrics/constants.go b/protocol/lib/metrics/constants.go index 213acf5704..5b49318cab 100644 --- a/protocol/lib/metrics/constants.go +++ b/protocol/lib/metrics/constants.go @@ -98,7 +98,6 @@ const ( CancelShortTermOrder = "cancel_short_term_order" CancelStatefulOrder = "cancel_stateful_order" ClobPairId = "clob_pair_id" - ClobPrepareCheckState = "prepare_check_state" ClobLiquidateSubaccountsAgainstOrderbook = "liquidate_subaccounts_against_orderbook" LiquidateSubaccounts_GetLiquidations = "liquidate_subaccounts_against_orderbook_get_liquidations" LiquidateSubaccounts_PlaceLiquidations = "liquidate_subaccounts_against_orderbook_place_liquidations" diff --git a/protocol/x/clob/abci.go b/protocol/x/clob/abci.go index bba93358a2..f8e89134ce 100644 --- a/protocol/x/clob/abci.go +++ b/protocol/x/clob/abci.go @@ -121,13 +121,6 @@ func PrepareCheckState( keeper *keeper.Keeper, liquidatableSubaccountIds *liquidationtypes.LiquidatableSubaccountIds, ) { - defer telemetry.MeasureSince( - time.Now(), - types.ModuleName, - metrics.ClobPrepareCheckState, - metrics.Latency, - ) - // Get the events generated from processing the matches in the latest block. processProposerMatchesEvents := keeper.GetProcessProposerMatchesEvents(ctx) if ctx.BlockHeight() != int64(processProposerMatchesEvents.BlockHeight) {