Skip to content

Commit

Permalink
fix: fix issue with error restoring in syncer
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Jul 12, 2023
1 parent d500a59 commit a8b4a15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ func (s *Syncer[H]) doSync(ctx context.Context, fromHead, toHead H) (err error)
s.state.End = time.Now()
if err != nil {
s.state.Error = err.Error()
} else {
s.state.Error = ""
}
s.stateLk.Unlock()
return err
Expand Down

0 comments on commit a8b4a15

Please sign in to comment.