migrate: Allow migrations to request a check run

This is currently only used by upgrade_repo_v2.
This commit is contained in:
Michael Eischer 2022-05-01 20:16:49 +02:00
parent 59eb132dcd
commit c1bbbcd0dc
4 changed files with 26 additions and 0 deletions

View file

@ -37,6 +37,10 @@ func (m *S3Layout) Check(ctx context.Context, repo restic.Repository) (bool, err
return true, nil
}
func (m *S3Layout) RepoCheckOptions() *RepositoryCheckOptions {
return nil
}
func retry(max int, fail func(err error), f func() error) error {
var err error
for i := 0; i < max; i++ {