ledgerwatch / erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
3.03k stars 1.04k forks source link

kv_mdbx.go: use 1 map for closers instead of 2 #10764

Closed AskAlexSharov closed 1 day ago

AskAlexSharov commented 1 week ago

now we have

    cursors  map[uint64]*mdbx.Cursor
    cursorID uint64

    streams  map[int]kv.Closer
    streamID int

probably only one map[int]kv.Closer is enough.