Unify repository receiver name.

This commit is contained in:
Martin Smith
2025-03-23 09:57:59 +00:00
parent c617364d15
commit 5e7333d28d

View File

@@ -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
}