Skip to content

Commit

Permalink
Remove the dependency injection in shut down (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex authored May 28, 2024
1 parent b0ef791 commit fd56800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/marqo/tensor_search/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ def marqo_internal_exception_handler(request, exc: api_exceptions.MarqoError):


@app.on_event("shutdown")
def shutdown_event(marqo_config: config.Config = Depends(get_config)):
def shutdown_event():
"""Close the Zookeeper client on shutdown."""
marqo_config = get_config()
marqo_config.stop_and_close_zookeeper_client()


Expand Down
2 changes: 1 addition & 1 deletion src/marqo/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.7.1"
__version__ = "2.7.2"


def get_version() -> str:
Expand Down

0 comments on commit fd56800

Please sign in to comment.