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


##########
conn.go:
##########
@@ -660,6 +673,16 @@ func (c *Conn) heartBeat(ctx context.Context) {
 }
 
 func (c *Conn) recv(ctx context.Context) error {
+       // If native proto v5+ is used and conn is set up, then we should
+       // unwrap payload body from v5 compressed/uncompressed frame
+       if c.version > protoVersion4 && c.connReady {

Review Comment:
   If I understand correctly you meant to change the order. Could you please 
add some details here?
   ```
   if c.startupCompleted && c.version > protoVersion4 {
       ...
   }
   ```
   



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