func (pr PeerResolver) FromShardID(shardID int) (string, error) {
	shardIDString := string(rune(shardID))
	host, err := pr.resolver.Lookup(service.History, shardIDString)
	if err != nil {
		return "", err
	}
	return host.GetNamedAddress(pr.namedPort)
}
// FromShardID resolves the history peer responsible for a given logical shardID.
// It uses our membership provider to lookup which instance currently owns the given shard.
// FromHostAddress is used for further resolving.
FromShardID resolves the history peer responsible for a given logical shardID.
It uses our membership provider to lookup which instance currently owns the given shard.
FromHostAddress is used for further resolving.
// FromShardID resolves the history peer responsible for a given logical shardID . // It uses our membership provider to lookup which instance currently owns the given shard . // FromHostAddress is used for further resolving .
func (pr PeerResolver) FromShardID(shardID int) (string, error) {
	shardIDString := string(rune(shardID))
	host, err := pr.resolver.Lookup(service.History, shardIDString)
	if err != nil {
		return "", err
	}
	return host.GetNamedAddress(pr.namedPort)
}
func ( pr PeerResolver ) FromShardID ( shardID int ) ( string , error ) { shardIDString := string ( rune ( shardID ) ) host , err := pr . resolver . Lookup ( service . History , shardIDString ) if err != nil { return " " , err } return host . GetNamedAddress ( pr . namedPort ) }
FromShardID resolves the history peer responsible for a given logical shardID.
FromShardID resolves the history peer responsible for a given logical shardID .