src/server/pkg/serviceenv/service_env.go
func (env *ServiceEnv) GetEtcdClient() *etcd.Client {
	if err := env.etcdEg.Wait(); err != nil {
		panic(err) // If env can't connect, there's no sensible way to recover
	}
	if env.etcdClient == nil {
		panic("service env never connected to etcd")
	}
	return env.etcdClient
}
func (env *ServiceEnv) GetEtcdClient() *etcd.Client {
	if err := env.etcdEg.Wait(); err != nil {
		panic(err) // If env can't connect, there's no sensible way to recover
	}
	if env.etcdClient == nil {
		panic("service env never connected to etcd")
	}
	return env.etcdClient
}
func ( env * ServiceEnv ) GetEtcdClient ( ) * etcd . Client { if err := env . etcdEg . Wait ( ) ; err != nil { panic ( err ) // If env can't connect, there's no sensible way to recover } if env . etcdClient == nil { panic ( " " ) } return env . etcdClient }
// GetEtcdClient returns the already connected etcd client without modification.
GetEtcdClient returns the already connected etcd client without modification .