restorer: lower-case variable name
This commit is contained in:
parent
34a33565c8
commit
69d5b4c36b
1 changed files with 3 additions and 3 deletions
|
@ -251,16 +251,16 @@ func (r *fileRestorer) downloadPack(ctx context.Context, pack *packInfo) {
|
||||||
if bufferSize > maxBufferSize {
|
if bufferSize > maxBufferSize {
|
||||||
bufferSize = maxBufferSize
|
bufferSize = maxBufferSize
|
||||||
}
|
}
|
||||||
BufRd := bufio.NewReaderSize(rd, bufferSize)
|
bufRd := bufio.NewReaderSize(rd, bufferSize)
|
||||||
currentBlobEnd := start
|
currentBlobEnd := start
|
||||||
var blobData, buf []byte
|
var blobData, buf []byte
|
||||||
for _, blobID := range sortedBlobs {
|
for _, blobID := range sortedBlobs {
|
||||||
blob := blobs[blobID]
|
blob := blobs[blobID]
|
||||||
_, err := BufRd.Discard(int(blob.offset - currentBlobEnd))
|
_, err := bufRd.Discard(int(blob.offset - currentBlobEnd))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 {
|
if err != nil {
|
||||||
for file := range blob.files {
|
for file := range blob.files {
|
||||||
markFileError(file, err)
|
markFileError(file, err)
|
||||||
|
|
Loading…
Reference in a new issue