Skip to content

Commit

Permalink
Remove dupe CLOB prepare check state metric (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dydx authored Oct 16, 2023
1 parent 3d68431 commit 77573aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion protocol/lib/metrics/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 0 additions & 7 deletions protocol/x/clob/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77573aa

Please sign in to comment.