mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
dont expose makePersistent
This commit is contained in:
4
peer.go
4
peer.go
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user