Skip to content

Commit

Permalink
tmpdb: move to tmpdir (ledgerwatch#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored and blxdyx committed Sep 13, 2023
1 parent 26f44d5 commit 1280f41
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 1280f41

Please sign in to comment.