func ConnectUrls(urls string, timeout time.Duration) (net.Conn, error) {
	us, err := ParseUrls(urls)
	if err != nil {
		return nil, errors.Trace(err)
	}
	for _, u := range us {
		conn, err := connectURL(u, timeout)
		if err == nil {
			return conn, nil
		}
	}
	return nil, errors.Errorf("failed to connect to %s", urls)
}
// ConnectUrls returns a rpc connection to any one of the urls.
ConnectUrls returns a rpc connection to any one of the urls.
// ConnectUrls returns a rpc connection to any one of the urls .
func ConnectUrls(urls string, timeout time.Duration) (net.Conn, error) {
	us, err := ParseUrls(urls)
	if err != nil {
		return nil, errors.Trace(err)
	}
	for _, u := range us {
		conn, err := connectURL(u, timeout)
		if err == nil {
			return conn, nil
		}
	}
	return nil, errors.Errorf("failed to connect to %s", urls)
}
func ConnectUrls ( urls string , timeout time . Duration ) ( net . Conn , error ) { us , err := ParseUrls ( urls ) if err != nil { return nil , errors . Trace ( err ) } for _ , u := range us { conn , err := connectURL ( u , timeout ) if err == nil { return conn , nil } } return nil , errors . Errorf ( " " , urls ) }
ConnectUrls returns a rpc connection to any one of the urls.
ConnectUrls returns a rpc connection to any one of the urls .