kv_mdbx: fix typo db.evn -> db.env (#887)

This commit is contained in:
Maxim Andreev 2023-02-12 14:20:50 +03:00 committed by GitHub
parent e647e5fe3b
commit ddf6c3bcf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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