Skip to content

Commit

Permalink
Use snappy.NewBufferedWriter instead of the deprecated NewWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
mostynb committed Aug 22, 2021
1 parent 3b307d9 commit b9d5de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snappy/snappy.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type reader struct {
func init() {
c := &compressor{}
c.poolCompressor.New = func() interface{} {
w := snappylib.NewWriter(ioutil.Discard)
w := snappylib.NewBufferedWriter(ioutil.Discard)
return &writer{Writer: w, pool: &c.poolCompressor}
}
encoding.RegisterCompressor(c)
Expand Down

0 comments on commit b9d5de0

Please sign in to comment.