mirror of
https://github.com/restic/restic.git
synced 2025-12-15 23:12:23 +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.
|
// 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))
|
handles := make([]backend.Handle, 0, len(packs))
|
||||||
for pack := range packs {
|
for pack := range packs {
|
||||||
handles = append(
|
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()},
|
backend.Handle{Type: restic.PackFile, Name: pack.String()},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
handlesWarmingUp, err := repo.be.Warmup(ctx, handles)
|
handlesWarmingUp, err := r.be.Warmup(ctx, handles)
|
||||||
return &WarmupJob{
|
return &WarmupJob{
|
||||||
repo: repo,
|
repo: r,
|
||||||
handlesWarmingUp: handlesWarmingUp,
|
handlesWarmingUp: handlesWarmingUp,
|
||||||
}, err
|
}, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user