From ddf6c3bcf300979ee31c5a269bc5f7c6d0bd7953 Mon Sep 17 00:00:00 2001 From: Maxim Andreev Date: Sun, 12 Feb 2023 14:20:50 +0300 Subject: [PATCH] kv_mdbx: fix typo db.evn -> db.env (#887) --- kv/mdbx/kv_mdbx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kv/mdbx/kv_mdbx.go b/kv/mdbx/kv_mdbx.go index 82132e7ed..5d85eef77 100644 --- a/kv/mdbx/kv_mdbx.go +++ b/kv/mdbx/kv_mdbx.go @@ -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