From 44ee04d8aa18881b394a37d35164c4ca448f1785 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 19 Jul 2023 15:44:14 +0700 Subject: [PATCH] warmup timeout duration (#110) save --- mdbx/txn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdbx/txn.go b/mdbx/txn.go index 0e45d6a..8eb2fa8 100644 --- a/mdbx/txn.go +++ b/mdbx/txn.go @@ -771,11 +771,11 @@ func (txn *Txn) ListDBI() (res []string, err error) { return res, nil } -func (txn *Txn) EnvWarmup(flags, timeout uint) error { +func (txn *Txn) EnvWarmup(flags uint, timeout time.Duration) error { ret := C.mdbx_env_warmup( txn.env._env, txn._txn, C.MDBX_warmup_flags_t(flags), - C.uint(timeout), + C.uint(NewDuration16dot16(timeout)), ) return operrno("mdbx_env_warmup", ret) }