Skip to content

Commit

Permalink
Merge pull request #537 from ncw/fix-readfrom
Browse files Browse the repository at this point in the history
Stop ReadFromWithConcurrency sending more data than it needs to
  • Loading branch information
drakkan authored Feb 13, 2023
2 parents 2489717 + 8add055 commit 971c283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 971c283

Please sign in to comment.