make memoryPool.New logic identical to old NewMemory logic

This commit is contained in:
lmittmann 2024-07-15 13:42:21 +02:00
parent f62d48649f
commit b21288d229

View file

@ -24,9 +24,7 @@ import (
var memoryPool = sync.Pool{ var memoryPool = sync.Pool{
New: func() any { New: func() any {
return &Memory{ return &Memory{}
store: make([]byte, 0),
}
}, },
} }