code: func (a *AddrManager) loadPeers() {
  	a.mtx.Lock()
  	defer a.mtx.Unlock()
  
  	err := a.deserializePeers(a.peersFile)
  	if err != nil {
  		log.Errorf("Failed to parse file %s: %v", a.peersFile, err)
  		// if it is invalid we nuke the old one unconditionally.
  		err = os.Remove(a.peersFile)
  		if err != nil {
  			log.Warnf("Failed to remove corrupt peers file %s: %v",
  				a.peersFile, err)
  		}
  		a.reset()
  		return
  	}
  	log.Infof("Loaded %d addresses from file '%s'", a.numAddresses(), a.peersFile)
  }
docs: // loadPeers loads the known address from the saved file.  If empty, missing, or
  // malformed file, just don't load anything and start fresh