Skip to content

Commit 49a19eb

Browse files
Push metrics when there is no unbonding txs
1 parent 98ad1d6 commit 49a19eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/services/unbonding_pipeline.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,6 @@ func (up *UnbondingPipeline) ProcessNewTransactions(ctx context.Context) error {
374374
return err
375375
}
376376

377-
if len(unbondingTransactions) == 0 {
378-
up.logger.Info("No unbonding new transactions to process")
379-
return nil
380-
}
381-
382377
defer func() {
383378
if up.Metrics.Config.Enabled {
384379
if err := up.pushMetrics(); err != nil {
@@ -387,6 +382,11 @@ func (up *UnbondingPipeline) ProcessNewTransactions(ctx context.Context) error {
387382
}
388383
}()
389384

385+
if len(unbondingTransactions) == 0 {
386+
up.logger.Info("No unbonding new transactions to process")
387+
return nil
388+
}
389+
390390
if err := up.processUnbondingTransactions(ctx, unbondingTransactions); err != nil {
391391
return err
392392
}

0 commit comments

Comments
 (0)