Skip to content

Commit

Permalink
fix base async
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Jan 17, 2025
1 parent 6c29020 commit 0d9762e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyTigerGraph/common/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,18 @@ def __init__(self, host: str = "http://127.0.0.1", graphname: str = "MyGraph",

restppPort = str(restppPort)
sslPort = str(sslPort)
if self.tgCloud and (restppPort == "9000" or restppPort == "443"):
gsPort = str(gsPort)
if restppPort == gsPort:
self.restppPort = restppPort
self.restppUrl = self.host + ":" + restppPort + "/restpp"
elif self.tgCloud and (restppPort == "9000" or restppPort == "443"):
self.restppPort = sslPort
self.restppUrl = self.host + ":" + sslPort + "/restpp"
else:
self.restppPort = restppPort
self.restppUrl = self.host + ":" + self.restppPort

self.gsPort = ""
gsPort = str(gsPort)
if self.tgCloud and (gsPort == "14240" or gsPort == "443"):
self.gsPort = sslPort
self.gsUrl = self.host + ":" + sslPort
Expand Down

0 comments on commit 0d9762e

Please sign in to comment.