forked from cerc-io/plugeth
all: replace uses of ioutil with io and os (#24869)
This commit is contained in:
+1
-2
@@ -19,7 +19,6 @@ package node
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@@ -470,7 +469,7 @@ func getKeyStoreDir(conf *Config) (string, bool, error) {
|
||||
isEphemeral := false
|
||||
if keydir == "" {
|
||||
// There is no datadir.
|
||||
keydir, err = ioutil.TempDir("", "go-ethereum-keystore")
|
||||
keydir, err = os.MkdirTemp("", "go-ethereum-keystore")
|
||||
isEphemeral = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user