dkropachev commented on code in PR #1886:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1886#discussion_r2141508289
##########
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:
looks good, can you please add comment why this code is there, mentioning
issue number and `Amazon Keyspaces`
--
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]