From d59a95fe53c0f82aba95ad3147276790aad20298 Mon Sep 17 00:00:00 2001 From: huangzhangshu <109708205+JashBook@users.noreply.github.com> Date: Sun, 4 Jan 2026 12:00:35 +0800 Subject: [PATCH] Revert "chore: build image failed (#24)" This reverts commit 07849fd216c5aac8bbcfc2af88f377d5e4dabaa2. --- pkg/storage/kopia/maintenance.go | 2 +- pkg/storage/kopia/repo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/kopia/maintenance.go b/pkg/storage/kopia/maintenance.go index 112f998..12b3ecb 100644 --- a/pkg/storage/kopia/maintenance.go +++ b/pkg/storage/kopia/maintenance.go @@ -43,7 +43,7 @@ func RunMaintenance(ctx context.Context, st storage.Storage, safety string) erro Purpose: "datasafed:maintenance", }, func(ctx context.Context, dw repo.DirectRepositoryWriter) error { mode := maintenance.ModeQuick - _, supportsEpochManager, err := dw.ContentManager().EpochManager() + _, supportsEpochManager, err := dw.ContentManager().EpochManager(ctx) if err != nil { return fmt.Errorf("EpochManager error: %w", err) } diff --git a/pkg/storage/kopia/repo.go b/pkg/storage/kopia/repo.go index 1e68803..3dc7488 100644 --- a/pkg/storage/kopia/repo.go +++ b/pkg/storage/kopia/repo.go @@ -169,7 +169,7 @@ func setDefaultMaintenanceParameters(ctx context.Context, rep repo.RepositoryWri p.Owner = rep.ClientOptions().UsernameAtHost() if dw, ok := rep.(repo.DirectRepositoryWriter); ok { - _, ok, err := dw.ContentReader().EpochManager() + _, ok, err := dw.ContentReader().EpochManager(ctx) if err != nil { return fmt.Errorf("epoch manager, %w", err) }