Rest set writer.err=nil

This commit is contained in:
zuiwuchang 2021-08-25 10:29:47 +08:00
parent cf8bc3b664
commit ec682fbe0a
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ func (w *Writer) Reset(dst io.Writer) {
w.params.lgwin = uint(w.options.LGWin) w.params.lgwin = uint(w.options.LGWin)
} }
w.dst = dst w.dst = dst
w.err = nil
} }
func (w *Writer) writeChunk(p []byte, op int) (n int, err error) { func (w *Writer) writeChunk(p []byte, op int) (n int, err error) {