yomipq commented on code in PR #1886:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1886#discussion_r2141317153
##########
host_source.go:
##########
@@ -752,9 +752,14 @@ func refreshRing(r *ringDescriber) error {
return err
}
+ hostMap := make(map[string]*HostInfo, len(hosts))
+ for _, host := range hosts {
+ hostMap[host.HostID()] = host
+ }
+
Review Comment:
I fixed `GetHosts()` to ignore localHost if the same Host ID exists.
Could you please confirm?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]