chore: refactor log limit in rest (#3572)

This commit is contained in:
Kevin Wan
2023-09-16 22:33:30 +08:00
committed by GitHub
parent cc21f5fae2
commit 0dcede6457
7 changed files with 50 additions and 15 deletions

View File

@@ -27,7 +27,9 @@ func (t *limitTeeReader) Read(p []byte) (n int, err error) {
if n, err := t.w.Write(p[:limit]); err != nil {
return n, err
}
t.n -= limit
}
return
}