Skip to content

Commit

Permalink
Destroy the client explicitely
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 15, 2024
1 parent 7374c43 commit 0045673
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def service_caller(
f"{call_timeout}. (Attempt {attempt+1} of {max_attempts}.)"
)
else:
node.destroy_client(cli)
return future.result()
node.destroy_client(cli)
raise RuntimeError(
f"Could not successfully call service {fully_qualified_service_name} after {max_attempts} attempts."
)
Expand Down

0 comments on commit 0045673

Please sign in to comment.