mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
Remove unneeded seek
The file returned from DownloadAndHash() is already seeked to the start of the file.
This commit is contained in:
parent
a4507610a0
commit
866a52ad4e
@ -92,11 +92,6 @@ func Repack(ctx context.Context, repo restic.Repository, packs restic.IDSet, kee
|
||||
for job := range processQueue {
|
||||
tempfile, packID, packLength := job.tempfile, job.hash, job.packLength
|
||||
|
||||
_, err = tempfile.Seek(0, 0)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Seek")
|
||||
}
|
||||
|
||||
blobs, err := pack.List(repo.Key(), tempfile, packLength)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user