Skip to content

Commit

Permalink
warmup timeout duration (#110)
Browse files Browse the repository at this point in the history
save
  • Loading branch information
AskAlexSharov authored Jul 19, 2023
1 parent 8d98de7 commit 44ee04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdbx/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 44ee04d

Please sign in to comment.