You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The Writer returned buffers writes. Users must call Close to guarantee all
However, in looking at the Flush/Close implementations, and their usages in tests, it seems that users only need to call Flush, not Close, which would allow a caller to continue using the buffered writer.
The text was updated successfully, but these errors were encountered:
The comment (and docs) to
NewBufferedWriter
state that "Users must call Close to guarantee all data has been forwarded to the underlying io.Writer":snappy/encode.go
Line 132 in 674baa8
However, in looking at the Flush/Close implementations, and their usages in tests, it seems that users only need to call
Flush
, notClose
, which would allow a caller to continue using the buffered writer.The text was updated successfully, but these errors were encountered: