Skip to content

Commit

Permalink
chore: remove destructor from connector.py (#315)
Browse files Browse the repository at this point in the history
Remove __del__ destructor for Connector as it seems to be causing timeout errors.

Related to GoogleCloudPlatform/cloud-sql-python-connector#1010.
  • Loading branch information
enocom authored May 8, 2024
1 parent 95f80f6 commit bb5d107
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions google/cloud/alloydb/connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,3 @@ async def close_async(self) -> None:
)
if self._client:
await self._client.close()

def __del__(self) -> None:
"""Close Connector as part of garbage collection"""
self.close()

0 comments on commit bb5d107

Please sign in to comment.