mirror of
https://github.com/restic/restic.git
synced 2026-07-14 19:24:53 +00:00
check: add progress bar to the tree structure check
This commit is contained in:
committed by
Alexander Neumann
parent
505f8a2229
commit
e2b0072441
@@ -240,7 +240,11 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error {
|
||||
|
||||
Verbosef("check snapshots, trees and blobs\n")
|
||||
errChan = make(chan error)
|
||||
go chkr.Structure(gopts.ctx, errChan)
|
||||
go func() {
|
||||
bar := newProgressMax(!gopts.Quiet, 0, "snapshots")
|
||||
defer bar.Done()
|
||||
chkr.Structure(gopts.ctx, bar, errChan)
|
||||
}()
|
||||
|
||||
for err := range errChan {
|
||||
errorsFound = true
|
||||
|
||||
Reference in New Issue
Block a user