Skip to content

Commit

Permalink
Merge pull request #83 from vgonkivs/restore_error
Browse files Browse the repository at this point in the history
fix: fix issue with error restoring in syncer
  • Loading branch information
renaynay committed Jul 12, 2023
2 parents d500a59 + a8b4a15 commit 37081bb
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 37081bb

Please sign in to comment.