code: func JoinAllowed(raftDir string) (bool, error) {
  	n, err := NumPeers(raftDir)
  	if err != nil {
  		return false, err
  	}
  	return n <= 1, nil
  }
docs: // JoinAllowed returns whether the config files within raftDir indicate
  // that the node can join a cluster.