dont expose makePersistent

This commit is contained in:
Ethan Buchman
2017-04-10 16:04:55 -04:00
parent b6f744c732
commit 9a1a6c56b4
3 changed files with 4 additions and 4 deletions

View File

@ -319,7 +319,7 @@ func (sw *Switch) DialPeerWithAddress(addr *NetAddress, persistent bool) (*Peer,
peer, err := newPeer(addr, sw.reactorsByCh, sw.chDescs, sw.StopPeerForError, sw.config, sw.nodePrivKey)
if persistent {
peer.MakePersistent()
peer.makePersistent()
}
if err != nil {
log.Info("Failed dialing peer", "address", addr, "error", err)