From 39a26066f7ac6902f3d1d5e09cebad98efc6e9a3 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Sun, 31 Jan 2021 18:28:02 +0100 Subject: [PATCH] rebuild-index: add missing bar.Done() --- cmd/restic/cmd_rebuild_index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/restic/cmd_rebuild_index.go b/cmd/restic/cmd_rebuild_index.go index 2ac7b2613..707309e64 100644 --- a/cmd/restic/cmd_rebuild_index.go +++ b/cmd/restic/cmd_rebuild_index.go @@ -110,6 +110,7 @@ func rebuildIndex(opts RebuildIndexOptions, gopts GlobalOptions, repo *repositor Verbosef("reading pack files\n") bar := newProgressMax(!globalOptions.Quiet, uint64(len(packSizeFromList)), "packs") invalidFiles, err := repo.CreateIndexFromPacks(ctx, packSizeFromList, bar) + bar.Done() if err != nil { return err }