Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
happy-machine authored Jan 23, 2023
1 parent 301e30e commit d6a5ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fastqlapi/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
self.context = zmq.Context()
def listen(self):
fastqlapi.init(self.query_name, self.args, self.fields)
print(f"Started GraphQL server on http//{os.getenv('GRAPHQL_HOST', default='localhost')}:{os.getenv('GRAPHQL_PORT', default='8000')}.")
print(f"Started GraphQL server on http://{os.getenv('GRAPHQL_HOST', default='localhost')}:{os.getenv('GRAPHQL_PORT', default='8000')}.")
while True:
socket = self.context.socket(zmq.REP)
socket.connect(f"tcp://{os.getenv('ZEROMQ_HOST', default='localhost')}:{os.getenv('ZEROMQ_PORT', default='5555')}")
Expand All @@ -41,4 +41,4 @@ def start(self, **kwargs):
self.callback = kwargs['callback']
self.listen()

fastql_server = Wrapper()
fastql_server = Wrapper()

0 comments on commit d6a5ed4

Please sign in to comment.