Skip to content

Commit

Permalink
Docstring improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Mar 3, 2022
1 parent 04778a4 commit 84c55ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler_gym/service/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def shutdown(self):
except ServiceError as e:
# close() can raise ServiceError if the service exists with a
# non-zero return code. We swallow the error here as we are
# disposing o f the service.
# disposing of the service.
logger.debug(
"Ignoring service error during shutdown attempt: %s (%s)",
e,
Expand Down
8 changes: 8 additions & 0 deletions compiler_gym/service/connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ class ServiceConnectionPool:
<compier_gym.service.CompilerGymServiceConnection.close>`), it is
automatically released back to the pool so that a future request for the
same type of service will reuse the connection.
:ivar pool: A pool of service connections that are ready for use.
:vartype pool: Dict[ServiceConnectionCacheKey, List[CompilerGymServiceConnection]]
:ivar allocated: The set of service connections that are currently in use.
:vartype allocated: Set[CompilerGymServiceConnection]
"""

def __init__(self) -> None:
Expand Down

0 comments on commit 84c55ee

Please sign in to comment.