log/修复WithBufferPool;
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user