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

@ -80,8 +80,8 @@ func (p *Peer) CloseConn() {
p.conn.Close()
}
// MakePersistent marks the peer as persistent.
func (p *Peer) MakePersistent() {
// makePersistent marks the peer as persistent.
func (p *Peer) makePersistent() {
if !p.outbound {
panic("inbound peers can't be made persistent")
}