refactor: apply renamed NewBytesPool with GetBytesPool

This commit is contained in:
yusing
2025-09-02 22:46:16 +08:00
parent c128557c81
commit b051987a1c
5 changed files with 5 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ const (
errBurst = 5
)
var lineBufPool = synk.NewBytesPool()
var lineBufPool = synk.GetBytesPool()
func NewAccessLogger(parent task.Parent, cfg AnyConfig) (*AccessLogger, error) {
io, err := cfg.IO()

View File

@@ -66,7 +66,7 @@ type lineInfo struct {
Size int64 // Size of this line
}
var rotateBytePool = synk.NewBytesPool()
var rotateBytePool = synk.GetBytesPool()
// rotateLogFile rotates the log file based on the retention policy.
// It returns the result of the rotation and an error if any.