tengu-alt commented on code in PR #1790:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1790#discussion_r2058119659


##########
conn.go:
##########
@@ -1898,16 +1898,14 @@ func (c *Conn) querySystemLocal(ctx context.Context) 
*Iter {
 func (c *Conn) awaitSchemaAgreement(ctx context.Context) (err error) {
        const localSchemas = "SELECT schema_version FROM system.local WHERE 
key='local'"
 
-       var versions map[string]struct{}
+       versions := make(map[string]struct{})
        var schemaVersion string
 
        endDeadline := time.Now().Add(c.session.cfg.MaxWaitSchemaAgreement)
 
        for time.Now().Before(endDeadline) {
                iter := c.querySystemPeers(ctx, c.host.version)
 
-               versions = make(map[string]struct{})

Review Comment:
   Agree, fixed



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to