mirror of
https://github.com/restic/restic.git
synced 2026-11-22 05:14:23 +00:00
migrate: Allow migrations to request a check run
This is currently only used by upgrade_repo_v2.
This commit is contained in:
1 parent
59eb132dcd
commit
c1bbbcd0dc
4 files changed
+26
No files matched your search
@@ -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++ {
|
||||
|
||||
Reference in new issue
Block a user