Merge pull request #7494 from AkihiroSuda/diff-apply-fix-read-count
This commit is contained in:
commit
7f33a20da2
@ -125,6 +125,8 @@ type readCounter struct {
|
|||||||
|
|
||||||
func (rc *readCounter) Read(p []byte) (n int, err error) {
|
func (rc *readCounter) Read(p []byte) (n int, err error) {
|
||||||
n, err = rc.r.Read(p)
|
n, err = rc.r.Read(p)
|
||||||
|
if n > 0 {
|
||||||
rc.c += int64(n)
|
rc.c += int64(n)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user