mirror of
https://github.com/restic/restic.git
synced 2026-11-02 05:25:33 +00:00
implement progress bar for index loading
This commit is contained in:
1 parent
eac1c4a8d0
commit
ed65a7dbca
24 files changed
+80
-37
No files matched your search
@@ -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