func startNode(myConf *Config, server cluster.Server, SM *sm.State_Machine) { //Start backaground process to listen incomming packets from other servers. go processInbox(server, SM) //Start StateMachine in follower state. go SM.StartFollSys() //Raft node Processing. myConf.ProcessLock.Lock() processEvents(server, SM, myConf) myConf.ProcessLock.Unlock() }