worryg0d commented on code in PR #1822:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1822#discussion_r1808447628
##########
conn.go:
##########
@@ -1086,7 +1155,29 @@ func (c *Conn) exec(ctx context.Context, req
frameBuilder, tracer Tracer) (*fram
return nil, err
}
- n, err := c.w.writeContext(ctx, framer.buf)
+ var n int
+
+ if c.version > protoVersion4 && startupCompleted {
+ err = framer.prepareModernLayout()
+ if err != nil {
Review Comment:
Oh, that's a pretty good variant. I don't have to duplicate existing error
handling, which I didn't like with my solution. Thanks a lot
--
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]