Skip to content

Commit

Permalink
fix: avoid to parse distributed configuration when present, right now…
Browse files Browse the repository at this point in the history
… it block while parsing it
  • Loading branch information
tglman committed Jun 5, 2024
1 parent b3f3dbb commit 5e3926c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pyorient/messages/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ def fetch_response(self):
nodes = []

# parsing Node List TODO: this must be put in serialization interface
if len(nodes_config) >0:
_, decoded = self.get_serializer().decode(nodes_config)

for node_dict in decoded['members']:
nodes.append(OrientNode(node_dict))
# this file to parse right now, just ignoring it
#if len(nodes_config) >0:
# _, decoded = self.get_serializer().decode(nodes_config)
#
# for node_dict in decoded['members']:
# nodes.append(OrientNode(node_dict))

# set database opened
self._orientSocket.db_opened = self._db_name
Expand Down

0 comments on commit 5e3926c

Please sign in to comment.