Commit fca384af authored by Guy Rozendorn's avatar Guy Rozendorn
Browse files

Adpating to changes in gremlinpython-3.4.4

parent aaa87f83
Pipeline #357 failed with stage
in 1 minute and 48 seconds
......@@ -42,8 +42,7 @@ class GremlinServerWSProtocol(protocol.AbstractBaseProtocol):
await func
async def data_received(self, data, results_dict):
data = data.decode('utf-8')
message = self._message_serializer.deserialize_message(json.loads(data))
message = self._message_serializer.deserialize_message(data)
request_id = message['requestId']
status_code = message['status']['code']
data = message['result']['data']
......@@ -65,7 +64,6 @@ class GremlinServerWSProtocol(protocol.AbstractBaseProtocol):
else:
if data:
for result in data:
result = self._message_serializer.deserialize_message(result)
message = Message(status_code, result, msg)
result_set.queue_result(message)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment