Skip to content

Commit

Permalink
fix issue where GetCallbackMetricFromCtx was returning CheckTx for Re…
Browse files Browse the repository at this point in the history
…CheckTx (#548)
  • Loading branch information
jakob-dydx authored Oct 10, 2023
1 parent 58d3120 commit c220484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/lib/metrics/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func ModuleMeasureSinceWithLabels(
// if the context is not CheckTx or ReCheckTx. This function is unable to account for other callbacks like
// PrepareCheckState or EndBlocker.
func GetCallbackMetricFromCtx(ctx sdk.Context) string {
if ctx.IsCheckTx() {
return CheckTx
}
if ctx.IsReCheckTx() {
return ReCheckTx
}
if ctx.IsCheckTx() {
return CheckTx
}

return DeliverTx
}

0 comments on commit c220484

Please sign in to comment.