From 5e7333d28dc20d51103cc620a4d74428177bda64 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Sun, 23 Mar 2025 09:57:59 +0000 Subject: [PATCH] Unify repository receiver name. --- internal/repository/warmup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/repository/warmup.go b/internal/repository/warmup.go index 7d96185a7..eca46692a 100644 --- a/internal/repository/warmup.go +++ b/internal/repository/warmup.go @@ -23,7 +23,7 @@ func (job *WarmupJob) Wait(ctx context.Context) error { } // StartWarmup creates a new warmup job, requesting the backend to warmup the specified packs. -func (repo *Repository) StartWarmup(ctx context.Context, packs restic.IDSet) (restic.WarmupJob, error) { +func (r *Repository) StartWarmup(ctx context.Context, packs restic.IDSet) (restic.WarmupJob, error) { handles := make([]backend.Handle, 0, len(packs)) for pack := range packs { handles = append( @@ -31,9 +31,9 @@ func (repo *Repository) StartWarmup(ctx context.Context, packs restic.IDSet) (re backend.Handle{Type: restic.PackFile, Name: pack.String()}, ) } - handlesWarmingUp, err := repo.be.Warmup(ctx, handles) + handlesWarmingUp, err := r.be.Warmup(ctx, handles) return &WarmupJob{ - repo: repo, + repo: r, handlesWarmingUp: handlesWarmingUp, }, err }