mirror of
https://github.com/restic/restic.git
synced 2025-12-04 11:44:31 +00:00
Remove unneeded seek
The file returned from DownloadAndHash() is already seeked to the start of the file.
This commit is contained in:
@@ -92,11 +92,6 @@ func Repack(ctx context.Context, repo restic.Repository, packs restic.IDSet, kee
|
|||||||
for job := range processQueue {
|
for job := range processQueue {
|
||||||
tempfile, packID, packLength := job.tempfile, job.hash, job.packLength
|
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)
|
blobs, err := pack.List(repo.Key(), tempfile, packLength)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user