Skip to content

Commit

Permalink
Update default timeout for grpc connection and inverted logging call
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpalms committed Jun 11, 2023
1 parent 89302fa commit 6429f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diambra/arena/engine/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def __init__(self, env_address, grpc_timeout=60):

try:
# Opening gRPC channel
self.client = Client(env_address, grpc_timeout)
self.logger.info("Trying to connect to DIAMBRA Engine server (timeout={}s)...".format(grpc_timeout))
self.client = Client(env_address, grpc_timeout)
except grpc.FutureTimeoutError as e:
raise Exception(CONNECTION_FAILED_ERROR_TEXT) from e

Expand Down
2 changes: 1 addition & 1 deletion diambra/arena/env_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EnvironmentSettings:
rank: int = 0
seed: int = -1
env_address: str = "localhost:50051"
grpc_timeout: int = 60
grpc_timeout: int = 600

# Game level
player: str = "Random"
Expand Down

0 comments on commit 6429f4e

Please sign in to comment.