Skip to content

Commit 0d9762e

Browse files
fix base async
1 parent 6c29020 commit 0d9762e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pyTigerGraph/common/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,18 @@ def __init__(self, host: str = "http://127.0.0.1", graphname: str = "MyGraph",
168168

169169
restppPort = str(restppPort)
170170
sslPort = str(sslPort)
171-
if self.tgCloud and (restppPort == "9000" or restppPort == "443"):
171+
gsPort = str(gsPort)
172+
if restppPort == gsPort:
173+
self.restppPort = restppPort
174+
self.restppUrl = self.host + ":" + restppPort + "/restpp"
175+
elif self.tgCloud and (restppPort == "9000" or restppPort == "443"):
172176
self.restppPort = sslPort
173177
self.restppUrl = self.host + ":" + sslPort + "/restpp"
174178
else:
175179
self.restppPort = restppPort
176180
self.restppUrl = self.host + ":" + self.restppPort
181+
177182
self.gsPort = ""
178-
gsPort = str(gsPort)
179183
if self.tgCloud and (gsPort == "14240" or gsPort == "443"):
180184
self.gsPort = sslPort
181185
self.gsUrl = self.host + ":" + sslPort

0 commit comments

Comments
 (0)