mirror of
https://github.com/restic/restic.git
synced 2026-07-02 21:44:17 +00:00
feat(backends/s3): add warmup support for check command (#5248)
This commit is contained in:
@@ -389,10 +389,9 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts global.Options, args
|
||||
}
|
||||
|
||||
if readDataFilter != nil {
|
||||
p := printer.NewCounter("packs")
|
||||
errChan := make(chan error)
|
||||
|
||||
go chkr.ReadPacks(ctx, readDataFilter, p, errChan)
|
||||
go chkr.ReadPacks(ctx, readDataFilter, printer, errChan)
|
||||
|
||||
for err := range errChan {
|
||||
errorsFound = true
|
||||
@@ -402,7 +401,6 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts global.Options, args
|
||||
salvagePacks.Insert(err.PackID)
|
||||
}
|
||||
}
|
||||
p.Done()
|
||||
}
|
||||
|
||||
if len(salvagePacks) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user