File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -374,11 +374,6 @@ func (up *UnbondingPipeline) ProcessNewTransactions(ctx context.Context) error {
374
374
return err
375
375
}
376
376
377
- if len (unbondingTransactions ) == 0 {
378
- up .logger .Info ("No unbonding new transactions to process" )
379
- return nil
380
- }
381
-
382
377
defer func () {
383
378
if up .Metrics .Config .Enabled {
384
379
if err := up .pushMetrics (); err != nil {
@@ -387,6 +382,11 @@ func (up *UnbondingPipeline) ProcessNewTransactions(ctx context.Context) error {
387
382
}
388
383
}()
389
384
385
+ if len (unbondingTransactions ) == 0 {
386
+ up .logger .Info ("No unbonding new transactions to process" )
387
+ return nil
388
+ }
389
+
390
390
if err := up .processUnbondingTransactions (ctx , unbondingTransactions ); err != nil {
391
391
return err
392
392
}
@@ -404,11 +404,6 @@ func (up *UnbondingPipeline) ProcessFailedTransactions(ctx context.Context) erro
404
404
return err
405
405
}
406
406
407
- if len (unbondingTransactions ) == 0 {
408
- up .logger .Info ("No failed unbonding transactions to process" )
409
- return nil
410
- }
411
-
412
407
defer func () {
413
408
if up .Metrics .Config .Enabled {
414
409
if err := up .pushMetrics (); err != nil {
@@ -417,6 +412,11 @@ func (up *UnbondingPipeline) ProcessFailedTransactions(ctx context.Context) erro
417
412
}
418
413
}()
419
414
415
+ if len (unbondingTransactions ) == 0 {
416
+ up .logger .Info ("No failed unbonding transactions to process" )
417
+ return nil
418
+ }
419
+
420
420
if err := up .processUnbondingTransactions (ctx , unbondingTransactions ); err != nil {
421
421
return err
422
422
}
You can’t perform that action at this time.
0 commit comments