mirror of
https://github.com/restic/restic.git
synced 2026-09-15 00:37:58 +00:00
implement progress bar for index loading
This commit is contained in:
committed by
Michael Eischer
parent
eac1c4a8d0
commit
ed65a7dbca
@@ -130,7 +130,8 @@ func runMount(ctx context.Context, opts MountOptions, gopts GlobalOptions, args
|
||||
}
|
||||
}
|
||||
|
||||
err = repo.LoadIndex(ctx)
|
||||
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
|
||||
err = repo.LoadIndex(ctx, bar)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user