Conform to go-common WriteFile*(path, mode)

This commit is contained in:
Jae Kwon 2015-12-04 00:02:44 -08:00
parent 1c628a97ad
commit c37e25e76b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}