Skip to content

Commit f3a9eb3

Browse files
mdbx_setup_debug - handle response correct way (#1931)
1 parent 7948eaf commit f3a9eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethdb/mdbx/env.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ func (env *Env) Flags() (uint, error) {
443443
}
444444

445445
func (env *Env) SetDebug(logLvl LogLvl, dbg int, logger *C.MDBX_debug_func) error {
446-
ret := C.mdbx_setup_debug(C.MDBX_log_level_t(logLvl), C.MDBX_debug_flags_t(dbg), logger)
447-
return operrno("mdbx_setup_debug", ret)
446+
_ = C.mdbx_setup_debug(C.MDBX_log_level_t(logLvl), C.MDBX_debug_flags_t(dbg), logger)
447+
return nil
448448
}
449449

450450
// Path returns the path argument passed to Open. Path returns a non-nil error

0 commit comments

Comments
 (0)