Skip to content

Commit

Permalink
Don't retry insufficient space syncthing errors (#1435)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
  • Loading branch information
pchico83 committed Apr 20, 2021
1 parent 7377c87 commit 1635336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/syncthing/syncthing.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ func (s *Syncthing) IsHealthy(ctx context.Context, local bool, max int) error {
if err != nil {
log.Infof("syncthing error in folder '%s' local=%t retry %d: %s", folder.RemotePath, local, folder.Retries, err.Error())
}
if err == errors.ErrInsufficientSpace {
return err
}

if folder.Retries <= max {
continue
}
Expand Down

0 comments on commit 1635336

Please sign in to comment.