forked from TrueCloudLab/frostfs-s3-gw
Fix wrap reader threshold error
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
5724423471
commit
c3416e9184
1 changed files with 1 additions and 0 deletions
|
@ -593,6 +593,7 @@ func wrapReaderThreshold(input io.Reader, threshold int) io.Reader {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_, _ = w.Write(buf[:cur])
|
_, _ = w.Write(buf[:cur])
|
||||||
_ = w.CloseWithError(err)
|
_ = w.CloseWithError(err)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
if cur < threshold {
|
if cur < threshold {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue