mirror of
https://github.com/restic/restic.git
synced 2025-08-22 02:51:05 +00:00
Unify repository receiver name.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user