changeset 37234:c1fac3878196

infinitepush: don't force ipv6 while connecting to mysql server Facebook internally enforces this but looks like we can't force this for pur users. Differential Revision: https://phab.mercurial-scm.org/D2992
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 31 Mar 2018 10:13:05 -0700
parents 912f4f64047f
children 7e906d8a825f
files hgext/infinitepush/sqlindexapi.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/infinitepush/sqlindexapi.py	Sat Mar 31 14:33:37 2018 +0530
+++ b/hgext/infinitepush/sqlindexapi.py	Sat Mar 31 10:13:05 2018 -0700
@@ -60,8 +60,7 @@
         retry = 3
         while True:
             try:
-                self.sqlconn = mysql.connector.connect(
-                    force_ipv6=True, **self.sqlargs)
+                self.sqlconn = mysql.connector.connect(**self.sqlargs)
 
                 # Code is copy-pasted from hgsql. Bug fixes need to be
                 # back-ported!