Merge pull request #537 from ncw/fix-readfrom

Stop ReadFromWithConcurrency sending more data than it needs to
This commit is contained in:
Nicola Murino 2023-02-13 19:01:17 +01:00 committed by GitHub
commit 971c283182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1674,7 +1674,7 @@ func (f *File) ReadFromWithConcurrency(r io.Reader, concurrency int) (read int64
Handle: f.handle,
Offset: uint64(off),
Length: uint32(n),
Data: b,
Data: b[:n],
})
select {