[#131] client: Add docs to `io.Reader` implementations
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>remotes/fyrchik/fix-lint
parent
85db22eea4
commit
b557aa0e2d
|
@ -239,6 +239,7 @@ func (x *ObjectReader) Close() (*ResObjectGet, error) {
|
||||||
return x.close(true)
|
return x.close(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read implements io.Reader of the object payload.
|
||||||
func (x *ObjectReader) Read(p []byte) (int, error) {
|
func (x *ObjectReader) Read(p []byte) (int, error) {
|
||||||
n, ok := x.readChunk(p)
|
n, ok := x.readChunk(p)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
@ -613,6 +614,7 @@ func (x *ObjectRangeReader) Close() (*ResObjectRange, error) {
|
||||||
return x.close(true)
|
return x.close(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read implements io.Reader of the object payload.
|
||||||
func (x *ObjectRangeReader) Read(p []byte) (int, error) {
|
func (x *ObjectRangeReader) Read(p []byte) (int, error) {
|
||||||
n, ok := x.readChunk(p)
|
n, ok := x.readChunk(p)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue