log/修复WithBufferPool;

develop
Ge Song 2 years ago
parent 1840681201
commit 01792c8295

@ -17,6 +17,7 @@ type Option interface {
func WithBufferPool(pool synchelper.BytesBufferPool) Option { func WithBufferPool(pool synchelper.BytesBufferPool) Option {
return optionFunc(func(cfg *config) { return optionFunc(func(cfg *config) {
cfg.pool = pool cfg.pool = pool
cfg.hasPool = true
}) })
} }

Loading…
Cancel
Save