Stop Counters where they're constructed and started

This commit is contained in:
greatroar committed 2020-11-09 13:03:31 +01:00
1 parent ddca699cd2
commit 21b787a4d1
8 files changed
+7 -11

No files matched your search

-2
View File
@@ -25,8 +25,6 @@ const numRepackWorkers = 8
// The map keepBlobs is modified by Repack, it is used to keep track of which
// blobs have been processed.
func Repack(ctx context.Context, repo restic.Repository, packs restic.IDSet, keepBlobs restic.BlobSet, p *progress.Counter) (obsoletePacks restic.IDSet, err error) {
defer p.Done()
debug.Log("repacking %d packs while keeping %d blobs", len(packs), len(keepBlobs))
wg, wgCtx := errgroup.WithContext(ctx)