mirror of
https://github.com/restic/restic.git
synced 2026-10-11 12:37:13 +00:00
checker: reuse bufio reader
This commit is contained in:
1 parent
34ebafb8b6
commit
930a00ad54
2 files changed
+7
-10
No files matched your search
@@ -767,6 +767,7 @@ func StreamPack(ctx context.Context, beLoad BackendLoadFn, key *crypto.Key, pack
|
||||
if bufferSize > MaxStreamBufferSize {
|
||||
bufferSize = MaxStreamBufferSize
|
||||
}
|
||||
// create reader here to allow reusing the buffered reader from checker.checkData
|
||||
bufRd := bufio.NewReaderSize(rd, bufferSize)
|
||||
currentBlobEnd := dataStart
|
||||
var buf []byte
|
||||
|
||||
Reference in new issue
Block a user