cugxuan opened a new pull request #291:
URL: https://github.com/apache/pulsar-client-go/pull/291
Fixes #177
### Motivation
support multi host
### Modifications
1. add a struct `HostResolve` to complete this demand
2. modify RPCClient and LookupService, remove the old variable `ServiceURL
*url.URL` to `host HostResolve`
3. modify the `request` function in`pulsar/consumer_partition.go`, I found
the old fuction params `logicalAddr` and `phyiscalAddr` could be got in `func
(c *rpcClient) getConn() (Connection, error)`, also in this function, we retry
connection if failded.
### Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? (not applicable / docs / GoDocs /
not documented)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]