mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
multi: replace ioutil.WriteFile
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
@@ -235,7 +234,7 @@ func updateLastCompactionDate(dbFile string) error {
|
||||
byteOrder.PutUint64(tsBytes[:], uint64(time.Now().UnixNano()))
|
||||
|
||||
tsFile := fmt.Sprintf("%s%s", dbFile, LastCompactionFileNameSuffix)
|
||||
return ioutil.WriteFile(tsFile, tsBytes[:], 0600)
|
||||
return os.WriteFile(tsFile, tsBytes[:], 0600)
|
||||
}
|
||||
|
||||
// GetTestBackend opens (or creates if doesn't exist) a bbolt or etcd
|
||||
|
Reference in New Issue
Block a user