Skip to content

Commit

Permalink
do not auto-Close() Writer after ReadFrom()/Copy()
Browse files Browse the repository at this point in the history
ReadFrom()/Copy() should leave it to user whether or not to Close() afterwards rather than shutting down/flushing immediately after the buffer is copied in.

fixes #183
  • Loading branch information
lizthegrey committed May 18, 2022
1 parent c6ed913 commit ec13d8c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion writer.go
Expand Up @@ -234,6 +234,5 @@ func (w *Writer) ReadFrom(r io.Reader) (n int64, err error) {
data = size.Get()
}
}
err = w.Close()
return
}

0 comments on commit ec13d8c

Please sign in to comment.