BenEddy commented on code in PR #1820:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1820#discussion_r1866725275
##########
query_executor.go:
##########
@@ -48,16 +48,64 @@ type ExecutableQuery interface {
}
type queryExecutor struct {
- pool *policyConnPool
- policy HostSelectionPolicy
+ pool *policyConnPool
+ policy HostSelectionPolicy
+ interceptor QueryAttemptInterceptor
+}
+
+type QueryAttempt struct {
+ // The query to execute, either a *gocql.Query or *gocql.Batch.
+ Query ExecutableQuery
+ // The connection used to execute the query.
+ Conn *Conn
+ // The host that will receive the query.
+ Host *HostInfo
Review Comment:
Removed the `Conn` field in favor of read-only `LocalAddr` and `RemoteAddr`
connection metadata fields, but retained the `Host` field to match
`ObservedQuery`.
--
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]