func (peer *localPeer) doAddConnection(conn ourConnection, isRestartedPeer bool) error {
	resultChan := make(chan error)
	peer.actionChan <- func() {
		resultChan <- peer.handleAddConnection(conn, isRestartedPeer)
	}
	return <-resultChan
}
func (peer *localPeer) doAddConnection(conn ourConnection, isRestartedPeer bool) error {
	resultChan := make(chan error)
	peer.actionChan <- func() {
		resultChan <- peer.handleAddConnection(conn, isRestartedPeer)
	}
	return <-resultChan
}
func ( peer * localPeer ) doAddConnection ( conn ourConnection , isRestartedPeer bool ) error { resultChan := make ( chan error ) peer . actionChan <- func ( ) { resultChan <- peer . handleAddConnection ( conn , isRestartedPeer ) } return <- resultChan }
// ACTOR client API
// Synchronous.
ACTOR client API Synchronous .