Ejemplo n.º 1
0
func mustConnectToMDS() torus.MetadataService {
	cfg := flagconfig.BuildConfigFromFlags()
	mds, err := torus.CreateMetadataService("etcd", cfg)
	if err != nil {
		die("couldn't connect to etcd: %v", err)
	}
	return mds
}
func mustConnectToMDS() torus.MetadataService {
	cfg := torus.Config{
		MetadataAddress: etcdAddress,
	}
	mds, err := torus.CreateMetadataService("etcd", cfg)
	if err != nil {
		die("couldn't connect to etcd: %v", err)
	}
	return mds
}