Skip to content

Commit

Permalink
[zstd] fix infinite recursion in Close wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mostynb committed Jun 28, 2022
1 parent 18e5236 commit 947f936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/disk/zstdimpl/cgozstd.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type putWriterToPoolOnClose struct {
}

func (w putWriterToPoolOnClose) Close() error {
err := w.Close()
err := w.writerWrapper.Close()
writerPool.Put(w.writerWrapper)
return err
}

0 comments on commit 947f936

Please sign in to comment.