worryg0d commented on code in PR #1822:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1822#discussion_r1804970008


##########
conn.go:
##########
@@ -378,10 +379,19 @@ func (s *startupCoordinator) setupConn(ctx 
context.Context) error {
        }
        defer cancel()
 
+       // Only for proto v5+.
+       // Indicates if STARTUP has been completed.
+       // github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec
+       // 2.3.1 Initial Handshake
+       //      In order to support both v5 and earlier formats, the v5 framing 
format is not
+       //  applied to message exchanges before an initial handshake is 
completed.
+       startupCompleted := &atomic.Bool{}

Review Comment:
   Oops, I missed it. It's kinda a shame that we can't use more distinguishing 
atomic types instead of generic `Value`... However, the code base already has 
some similar things, so changing it is not a very big problem.



-- 
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]

Reply via email to