mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-12 04:43:22 +08:00
optimize(orbyte): use manual destroy
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
)
|
||||
|
||||
// SelectWriter 从池中取出一个 Writer
|
||||
//
|
||||
// 不要忘记调用 Destroy 以快速回收资源
|
||||
func SelectWriter() *Writer {
|
||||
return (*Writer)(pbuf.NewBuffer(nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user