From 131abbb4f0a409a2e77d0f25e650d2f902092d29 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 5 Jun 2026 15:53:29 +0200 Subject: [PATCH] repository: unexport WarmupJob --- internal/repository/warmup.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/repository/warmup.go b/internal/repository/warmup.go index eca46692a..ef78ddaf4 100644 --- a/internal/repository/warmup.go +++ b/internal/repository/warmup.go @@ -7,18 +7,18 @@ import ( "github.com/restic/restic/internal/restic" ) -type WarmupJob struct { +type warmupJob struct { repo *Repository handlesWarmingUp []backend.Handle } // HandleCount returns the number of handles that are currently warming up. -func (job *WarmupJob) HandleCount() int { +func (job *warmupJob) HandleCount() int { return len(job.handlesWarmingUp) } // Wait waits for all handles to be warm. -func (job *WarmupJob) Wait(ctx context.Context) error { +func (job *warmupJob) Wait(ctx context.Context) error { return job.repo.be.WarmupWait(ctx, job.handlesWarmingUp) } @@ -32,7 +32,7 @@ func (r *Repository) StartWarmup(ctx context.Context, packs restic.IDSet) (resti ) } handlesWarmingUp, err := r.be.Warmup(ctx, handles) - return &WarmupJob{ + return &warmupJob{ repo: r, handlesWarmingUp: handlesWarmingUp, }, err