mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
restorer: lower-case variable name
This commit is contained in:
parent
34a33565c8
commit
69d5b4c36b
@ -251,16 +251,16 @@ func (r *fileRestorer) downloadPack(ctx context.Context, pack *packInfo) {
|
||||
if bufferSize > maxBufferSize {
|
||||
bufferSize = maxBufferSize
|
||||
}
|
||||
BufRd := bufio.NewReaderSize(rd, bufferSize)
|
||||
bufRd := bufio.NewReaderSize(rd, bufferSize)
|
||||
currentBlobEnd := start
|
||||
var blobData, buf []byte
|
||||
for _, blobID := range sortedBlobs {
|
||||
blob := blobs[blobID]
|
||||
_, err := BufRd.Discard(int(blob.offset - currentBlobEnd))
|
||||
_, err := bufRd.Discard(int(blob.offset - currentBlobEnd))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
blobData, buf, err = r.loadBlob(BufRd, blobID, blob.length, buf)
|
||||
blobData, buf, err = r.loadBlob(bufRd, blobID, blob.length, buf)
|
||||
if err != nil {
|
||||
for file := range blob.files {
|
||||
markFileError(file, err)
|
||||
|
Loading…
Reference in New Issue
Block a user