Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Sep 10, 2024
1 parent 76607f3 commit 7b54930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1323,9 +1323,8 @@ func Sync(src, dst object.ObjectStorage, config *Config) error {
for {
if failed.Current() >= config.MaxFailure {
logger.Infof("the maximum error limit of %d was reached, triggering the quick exit process", config.MaxFailure)
if syncExitFunc() != nil {
os.Exit(1)
}
_ = syncExitFunc()
os.Exit(1)
}
time.Sleep(time.Millisecond * 100)
}
Expand Down

0 comments on commit 7b54930

Please sign in to comment.