From 865f3dadd89f95f4e2f8fed104b2edb190598e9d 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 59ed5749..4829bb56 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" @@ -12,7 +13,7 @@ import ( // EndBlocker func EndBlocker(ctx sdk.Context, k keeper.Keeper) error { - 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 { return fmt.Errorf("failed to complete undelegations from x/alliance module: %s", err)