etcd/machines.go
2013-08-11 11:42:38 -07:00

9 lines
174 B
Go

package main
// machineNum returns the number of machines in the cluster
func machineNum() int {
response, _ := etcdStore.RawGet("_etcd/machines")
return len(response)
}