jameshartig commented on issue #357: URL: https://github.com/apache/cassandra-gocql-driver/issues/357#issuecomment-2626248122
> You would still have to use a mutex to manage reading and writing these fields right? The main goal of this issue was to get rid of this mutex. `NewSession(ClusterConfig)` right now will copy it so there's no mutex needed since the caller can't mutate the copied config. Same thing if it was `NewSession(ClusterConfig, SessionConfig)`. The reason why I think we'd need to accept both is because we'd want to make `(*ClusterConfig).CreateSession(SessionConfig)`. It's also a bit weird there's 2 different ways to make a session and they're almost identical. -- 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]
