From d8508d52767717c2ffbbc1ac84f7636d4ce06d5d Mon Sep 17 00:00:00 2001 From: MadReza Date: Tue, 23 Apr 2024 17:17:15 +0330 Subject: [PATCH] fix: change the start time used to calculate end blocker time metric --- x/alliance/abci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/alliance/abci.go b/x/alliance/abci.go index 02448a41..013bb75c 100644 --- a/x/alliance/abci.go +++ b/x/alliance/abci.go @@ -2,6 +2,7 @@ package alliance import ( "fmt" + "time" "github.com/terra-money/alliance/x/alliance/keeper" "github.com/terra-money/alliance/x/alliance/types" @@ -13,7 +14,7 @@ import ( // EndBlocker func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate { - defer telemetry.ModuleMeasureSince(types.ModuleName, ctx.BlockTime(), telemetry.MetricKeyEndBlocker) + defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyEndBlocker) k.CompleteRedelegations(ctx) if err := k.CompleteUnbondings(ctx); err != nil { panic(fmt.Errorf("failed to complete undelegations from x/alliance module: %s", err))