code: func (c *MemberlistManager) SetState(state NodeState) {
  	c.Lock()
  	node := c.members[c.nodeName]
  	if !node.SetState(state) {
  		c.Unlock()
  		return
  	}
  	c.members[c.nodeName] = node
  	c.Unlock()
  	nodeReady.Set(state == NodeReady)
  	c.BroadcastUpdate()
  }
docs: // Set the state of this node.