Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
tmpdb: move to tmpdir (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Sep 6, 2023
1 parent e02153a commit 9f77369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kv/mdbx/kv_mdbx_temporary.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ type TemporaryMdbx struct {
path string
}

func NewTemporaryMdbx() (kv.RwDB, error) {
path, err := os.MkdirTemp("", "mdbx-temp")
func NewTemporaryMdbx(tempdir string) (kv.RwDB, error) {
path, err := os.MkdirTemp(tempdir, "mdbx-temp")
if err != nil {
return &TemporaryMdbx{}, err
}
Expand Down

0 comments on commit 9f77369

Please sign in to comment.