mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
kv_mdbx: fix typo db.evn -> db.env (#887)
This commit is contained in:
parent
e647e5fe3b
commit
ddf6c3bcf3
@ -614,7 +614,7 @@ func (tx *MdbxTx) ListBuckets() ([]string, error) {
|
||||
}
|
||||
|
||||
func (db *MdbxKV) View(ctx context.Context, f func(tx kv.Tx) error) (err error) {
|
||||
// can't use db.evn.View method - because it calls commit for read transactions - it conflicts with write transactions.
|
||||
// can't use db.env.View method - because it calls commit for read transactions - it conflicts with write transactions.
|
||||
tx, err := db.BeginRo(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user