switch.go
func (sw *Switch) StopPeerGracefully(peer *Peer) {
	log.Notice("Stopping peer gracefully")
	sw.stopAndRemovePeer(peer, nil)
}
func (sw *Switch) StopPeerGracefully(peer *Peer) {
	log.Notice("Stopping peer gracefully")
	sw.stopAndRemovePeer(peer, nil)
}
func ( sw * Switch ) StopPeerGracefully ( peer * Peer ) { log . Notice ( " " ) sw . stopAndRemovePeer ( peer , nil ) }
// Disconnect from a peer gracefully.
// TODO: handle graceful disconnects.
Disconnect from a peer gracefully . TODO : handle graceful disconnects .