Skip to content

Commit 810ed91

Browse files
authored
Revert "chore: build image failed" (#26)
1 parent 2d44606 commit 810ed91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/storage/kopia/maintenance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func RunMaintenance(ctx context.Context, st storage.Storage, safety string) erro
4343
Purpose: "datasafed:maintenance",
4444
}, func(ctx context.Context, dw repo.DirectRepositoryWriter) error {
4545
mode := maintenance.ModeQuick
46-
_, supportsEpochManager, err := dw.ContentManager().EpochManager()
46+
_, supportsEpochManager, err := dw.ContentManager().EpochManager(ctx)
4747
if err != nil {
4848
return fmt.Errorf("EpochManager error: %w", err)
4949
}

pkg/storage/kopia/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func setDefaultMaintenanceParameters(ctx context.Context, rep repo.RepositoryWri
169169
p.Owner = rep.ClientOptions().UsernameAtHost()
170170

171171
if dw, ok := rep.(repo.DirectRepositoryWriter); ok {
172-
_, ok, err := dw.ContentReader().EpochManager()
172+
_, ok, err := dw.ContentReader().EpochManager(ctx)
173173
if err != nil {
174174
return fmt.Errorf("epoch manager, %w", err)
175175
}

0 commit comments

Comments
 (0)