Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Sep 17, 2024
1 parent 89ee9a9 commit 64e56d7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions synchronizer/internal/synchronizer_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,14 @@ func (s *SynchronizerImpl) Sync(executionFlags SyncExecutionFlags) error {
log.Infof("networkID: %d, continuing from the last block stored on DB. lastBlockSynced: %+v", s.networkID, lastBlockSynced)
}
log.Infof("NetworkID: %d, initial lastBlockSynced: %+v", s.networkID, lastBlockSynced)
err = s.lastExecutionChecker.StartingSynchronization(s.ctx, nil)
if err != nil {
if s.lastExecutionChecker != nil {
err = s.lastExecutionChecker.StartingSynchronization(s.ctx, nil)
if err != nil {

err := fmt.Errorf("error checking last execution data. Error: %w", err)
log.Errorf(" %s", err)
return err
err := fmt.Errorf("error checking last execution data. Error: %w", err)
log.Errorf(" %s", err)
return err
}
}
for {
select {
Expand Down

0 comments on commit 64e56d7

Please sign in to comment.