Browse Source

Fix for #1300 (#1314)

Signed-off-by: Alex Lourie <djay.il@gmail.com>
Alex Lourie 6 years ago
parent
commit
0680bfb964
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conn.go

+ 1 - 1
conn.go

@@ -1372,7 +1372,7 @@ func (c *Conn) awaitSchemaAgreement(ctx context.Context) (err error) {
 		}
 
 		for _, row := range rows {
-			host, err := c.session.hostInfoFromMap(row, c.session.cfg.Port)
+			host, err := c.session.hostInfoFromMap(row, &HostInfo{connectAddress: c.host.ConnectAddress(), port: c.session.cfg.Port})
 			if err != nil {
 				goto cont
 			}