restic: introduce Counter interface to decouple from ui/progress (#21861)

decouple restic and ui/progress packages
This commit is contained in:
Michael Eischer authored and GitHub committed 2026-06-13 21:08:18 +02:00
1 parent 22a304af7e
commit 8e11f5747d
37 files changed
+181 -145

No files matched your search

+2 -1
View File
@@ -15,6 +15,7 @@ import (
"github.com/restic/restic/internal/data"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic"
)
type MetaDirData struct {
@@ -326,7 +327,7 @@ func (d *SnapshotsDirStructure) updateSnapshots(ctx context.Context) error {
return nil
}
err = d.root.repo.LoadIndex(ctx, nil)
err = d.root.repo.LoadIndex(ctx, restic.NoopTerminalCounterFactory)
if err != nil {
return err
}