Skip to content

Commit

Permalink
chore: fix minor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jan 28, 2025
1 parent 9c7f3a0 commit 589769d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/statesync/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ func (r *Reactor) OnStart(ctx context.Context) error {
if err := r.postSyncHook(ctx, state); err != nil {
return fmt.Errorf("post sync failed: %w", err)
}
} else {
r.logger.Error("state sync failed; shutting down this node", "err", err)
return err
}
r.logger.Error("state sync failed; shutting down this node", "err", err)
return err
}
}

Expand Down

0 comments on commit 589769d

Please sign in to comment.