Skip to content

Commit 03c3db5

Browse files
update ProcessFailedTransactions
1 parent 49a19eb commit 03c3db5

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
@@ -404,11 +404,6 @@ func (up *UnbondingPipeline) ProcessFailedTransactions(ctx context.Context) erro
404404
return err
405405
}
406406

407-
if len(unbondingTransactions) == 0 {
408-
up.logger.Info("No failed unbonding transactions to process")
409-
return nil
410-
}
411-
412407
defer func() {
413408
if up.Metrics.Config.Enabled {
414409
if err := up.pushMetrics(); err != nil {
@@ -417,6 +412,11 @@ func (up *UnbondingPipeline) ProcessFailedTransactions(ctx context.Context) erro
417412
}
418413
}()
419414

415+
if len(unbondingTransactions) == 0 {
416+
up.logger.Info("No failed unbonding transactions to process")
417+
return nil
418+
}
419+
420420
if err := up.processUnbondingTransactions(ctx, unbondingTransactions); err != nil {
421421
return err
422422
}

0 commit comments

Comments
 (0)