Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <yujuncen@pingcap.com>
  • Loading branch information
YuJuncen committed Oct 10, 2023
1 parent 8f74db6 commit 4ee7449
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions br/pkg/utils/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,6 @@ func WithRetryV2[T any](
) (T, error) {
var allErrors error
for backoffer.Attempt() > 0 {
<<<<<<< HEAD
err := retryableFunc()
if err != nil {
allErrors = multierr.Append(allErrors, err)
select {
case <-ctx.Done():
return allErrors // nolint:wrapcheck
case <-time.After(backoffer.NextBackoff(err)):
}
} else {
return nil
}
=======
res, err := fn(ctx)
if err == nil {
return res, nil
Expand All @@ -95,7 +82,6 @@ func WithRetryV2[T any](
return *new(T), allErrors
case <-time.After(backoffer.NextBackoff(err)):
}
>>>>>>> 2ac191a1379 (snap_restore: added retry for recovery (#46094))
}
return *new(T), allErrors // nolint:wrapcheck
}
Expand Down

0 comments on commit 4ee7449

Please sign in to comment.