mirror of
https://github.com/restic/restic.git
synced 2025-12-03 21:51:47 +00:00
Stop Counters where they're constructed and started
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user