func (pr PeerResolver) GetAllPeers() ([]string, error) {
	hosts, err := pr.resolver.Members(service.History)
	if err != nil {
		return nil, err
	}
	peers := make([]string, 0, len(hosts))
	for _, host := range hosts {
		peer, err := host.GetNamedAddress(pr.namedPort)
		if err != nil {
			return nil, err
		}
		peers = append(peers, peer)
	}
	return peers, nil
}
// GetAllPeers returns all history service peers in the cluster ring.
GetAllPeers returns all history service peers in the cluster ring.
// GetAllPeers returns all history service peers in the cluster ring .
func (pr PeerResolver) GetAllPeers() ([]string, error) {
	hosts, err := pr.resolver.Members(service.History)
	if err != nil {
		return nil, err
	}
	peers := make([]string, 0, len(hosts))
	for _, host := range hosts {
		peer, err := host.GetNamedAddress(pr.namedPort)
		if err != nil {
			return nil, err
		}
		peers = append(peers, peer)
	}
	return peers, nil
}
func ( pr PeerResolver ) GetAllPeers ( ) ( [ ] string , error ) { hosts , err := pr . resolver . Members ( service . History ) if err != nil { return nil , err } peers := make ( [ ] string , 0 , len ( hosts ) ) for _ , host := range hosts { peer , err := host . GetNamedAddress ( pr . namedPort ) if err != nil { return nil , err } peers = append ( peers , peer ) } return peers , nil }
GetAllPeers returns all history service peers in the cluster ring.
GetAllPeers returns all history service peers in the cluster ring .