Skip to content

Commit

Permalink
adjust offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ddowker committed Jun 6, 2024
1 parent 57bd4c8 commit 620b3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/client/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (r *Reader) Read(p []byte) (n int, err error) {
return 0, fmt.Errorf("TransformSignedURL unsupported scheme: %s", fragURL.Scheme)
}
if r.direct, err = gcs.openWithOffset(r.ctx, fragURL,
*r.Response.Fragment, r.Request.Offset); err == nil {
*r.Response.Fragment, r.Request.Offset-r.Response.Fragment.Begin); err == nil {
n, err = r.Read(p) // Recurse to attempt read against opened |r.direct|.
}
} else {
Expand Down

0 comments on commit 620b3f5

Please sign in to comment.