mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
lack of a peers.json isn't an error, don't log in that case.
This commit is contained in:
parent
4455e77dde
commit
7d24f31fbd
@ -499,7 +499,7 @@ func (a *AddrManager) deserialisePeers(filePath string) error {
|
||||
|
||||
_, err := os.Stat(filePath)
|
||||
if os.IsNotExist(err) {
|
||||
return fmt.Errorf("%s does not exist.\n", filePath)
|
||||
return nil
|
||||
}
|
||||
r, err := os.Open(filePath)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user