Skip to content

Commit

Permalink
removes connection closing mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed May 6, 2024
1 parent a7afebd commit 297f6d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/repositories/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ async def create_env(self):
logger.info(
f"Call to repositories.environment.create_env completed; states: EnvID {self.env_id}"
)
await self.close_connection()

async def update_env(self):
"""
Expand All @@ -88,7 +87,6 @@ async def update_env(self):
logger.info(
f"Call to repositories.environment.update_env completed; states: Env {hash(self.env)}, EnvID {self.env_id}"
)
await self.close_connection()

async def get_env(self) -> "Union[Env, None]":
"""
Expand All @@ -108,7 +106,6 @@ async def get_env(self) -> "Union[Env, None]":
logger.info(
f"Call to repositories.environment.get_env completed; states: Env {hash(self.env)}, EnvID {self.env_id}"
)
await self.close_connection()

async def delete_env(self):
"""
Expand All @@ -126,4 +123,3 @@ async def delete_env(self):
logger.info(
f"Call to repositories.environment.delete_env completed; states: Env {hash(self.env)}, EnvID {self.env_id}"
)
await self.close_connection()
3 changes: 0 additions & 3 deletions lib/repositories/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ def __init__(self, collection: str):
)
self.db = self.client.rocketpy
self.collection = self.db[collection]

async def close_connection(self) -> None:
self.client.close()

0 comments on commit 297f6d8

Please sign in to comment.