删除Neo4JStorage.has_edge中定义的没有用到的同步close函数
This commit is contained in:
@@ -86,9 +86,6 @@ class Neo4JStorage(BaseGraphStorage):
|
|||||||
)
|
)
|
||||||
return single_result["edgeExists"]
|
return single_result["edgeExists"]
|
||||||
|
|
||||||
def close(self):
|
|
||||||
self._driver.close()
|
|
||||||
|
|
||||||
async def get_node(self, node_id: str) -> Union[dict, None]:
|
async def get_node(self, node_id: str) -> Union[dict, None]:
|
||||||
async with self._driver.session() as session:
|
async with self._driver.session() as session:
|
||||||
entity_name_label = node_id.strip('"')
|
entity_name_label = node_id.strip('"')
|
||||||
|
Reference in New Issue
Block a user