Stats: return chunk back to pool after done using go AddCleanup
Open
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
there is method to return chunk back to pool called ReleaseAndPutToPool but it's manually called in some cases. We could potentially use go feature AddCleanup to let runtime do it for us, which should be simpler and safer.
Contributor guide
Assessment
This issue has not been assessed yet.