mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
make memoryPool.New logic identical to old NewMemory logic
This commit is contained in:
parent
f62d48649f
commit
b21288d229
1 changed files with 1 additions and 3 deletions
|
|
@ -24,9 +24,7 @@ import (
|
|||
|
||||
var memoryPool = sync.Pool{
|
||||
New: func() any {
|
||||
return &Memory{
|
||||
store: make([]byte, 0),
|
||||
}
|
||||
return &Memory{}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue