func (peer *localPeer) actorLoop(actionChan <-chan localPeerAction) {
	gossipTimer := time.Tick(gossipInterval)
	for {
		select {
		case action := <-actionChan:
			action()
		case <-gossipTimer:
			peer.router.sendAllGossip()
		}
	}
}
func (peer *localPeer) actorLoop(actionChan <-chan localPeerAction) {
	gossipTimer := time.Tick(gossipInterval)
	for {
		select {
		case action := <-actionChan:
			action()
		case <-gossipTimer:
			peer.router.sendAllGossip()
		}
	}
}
func ( peer * localPeer ) actorLoop ( actionChan <- chan localPeerAction ) { gossipTimer := time . Tick ( gossipInterval ) for { select { case action := <- actionChan : action ( ) case <- gossipTimer : peer . router . sendAllGossip ( ) } } }
// ACTOR server
ACTOR server