Skip to content

Commit

Permalink
chore: Bring back driver close call
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-paliychuk committed Sep 22, 2024
1 parent cd3906d commit f651132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion graphiti_core/graphiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def close(self):
# Use graphiti...
finally:
graphiti.close()
self.driver.close()
"""
self.driver.close()

async def build_indices_and_constraints(self):
"""
Expand Down
2 changes: 2 additions & 0 deletions server/graph_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ async def lifespan(_: FastAPI):
settings = get_settings()
await initialize_graphiti(settings)
yield
# Shutdown
# No need to close Graphiti here, as it's handled per-request


app = FastAPI(lifespan=lifespan)
Expand Down

0 comments on commit f651132

Please sign in to comment.