mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 10:11:48 +00:00
Conform to go-common WriteFile*(path, mode)
This commit is contained in:
@ -318,7 +318,7 @@ func (a *AddrBook) saveToFile(filePath string) {
|
||||
log.Error("Failed to save AddrBook to file", "err", err)
|
||||
return
|
||||
}
|
||||
err = WriteFileAtomic(filePath, jsonBytes)
|
||||
err = WriteFileAtomic(filePath, jsonBytes, 0644)
|
||||
if err != nil {
|
||||
log.Error("Failed to save AddrBook to file", "file", filePath, "error", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user