Skip to content

Commit

Permalink
call partStream if pos is less than parts size
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Nov 3, 2023
1 parent 60cdcae commit 19d581d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/reader/lr.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ func (r *linearReader) Read(p []byte) (n int, err error) {
r.buffer = r.next()
if len(r.buffer) == 0 {
r.pos++
r.next = r.partStream()
if r.pos < len(r.parts) {
r.next = r.partStream()
}

}
r.i = 0
}
Expand Down

0 comments on commit 19d581d

Please sign in to comment.