Quellcode durchsuchen

地址改为linux下使用VPC

luojiehua vor 4 Jahren
Ursprung
Commit
d7902d7848
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      BaseDataMaintenance/dataSource/source.py

+ 2 - 2
BaseDataMaintenance/dataSource/source.py

@@ -70,12 +70,12 @@ import platform
 if platform.system()=="windows":
     OTS_URL = "https://bxkc-ots.cn-hangzhou.ots.aliyuncs.com"
 else:
-    OTS_URL = "https://bxkc-ots.cn-hangzhou.ots-internal.aliyuncs.com"
+    OTS_URL = "https://bxkc-ots.cn-hangzhou.vpc.tablestore.aliyuncs.com"
 
 def getConnect_ots():
     ots_client = tablestore.client.OTSClient(OTS_URL, 'LTAI4G2bwraGDYQ4S5hhCxht', 'k6Llfa0S1KuvYyU2cWchExdQjPGJOY',
                                              'bxkc-ots', logger_name = 'table_store.log',
-                                             retry_policy = tablestore.WriteRetryPolicy())
+                                             retry_policy = tablestore.WriteRetryPolicy(),socket_timeout=120)
     return ots_client
 
 def getConnect_gdb():