func NewClient(pdAddrs []string) (Client, error) {
	log.Infof("[pd] create pd client with endpoints %v", pdAddrs)
	worker, err := newRPCWorker(pdAddrs)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &client{worker: worker}, nil
}
// NewClient creates a PD client.
NewClient creates a PD client.
// NewClient creates a PD client .
func NewClient(pdAddrs []string) (Client, error) {
	log.Infof("[pd] create pd client with endpoints %v", pdAddrs)
	worker, err := newRPCWorker(pdAddrs)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &client{worker: worker}, nil
}
func NewClient ( pdAddrs [ ] string ) ( Client , error ) { log . Infof ( " " , pdAddrs ) worker , err := newRPCWorker ( pdAddrs ) if err != nil { return nil , errors . Trace ( err ) } return & client { worker : worker } , nil }
NewClient creates a PD client.
NewClient creates a PD client .