mirror of
https://github.com/restic/restic.git
synced 2026-08-15 18:13:17 +00:00
implement progress bar for index loading
This commit is contained in:
committed by
Michael Eischer
parent
eac1c4a8d0
commit
ed65a7dbca
@@ -152,7 +152,8 @@ func runDump(ctx context.Context, opts DumpOptions, gopts GlobalOptions, args []
|
||||
return errors.Fatalf("failed to find snapshot: %v", err)
|
||||
}
|
||||
|
||||
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