Skip to content

Commit

Permalink
fixed reading env variable (#25362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh Borysevych authored Feb 9, 2023
1 parent e0a36a2 commit e659c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playground/infrastructure/grpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class GRPCClient:

def __init__(self, wait_for_ready=True):
use_webgrpc = os.getenv("BEAM_USE_WEBGRPC", False)
timeout = os.getenv("GRPC_TIMEOUT", 10)
timeout = int(os.getenv("GRPC_TIMEOUT", 30))
logging.info("grpc timeout: %d", timeout)
if use_webgrpc:
self._channel = sonora.aio.insecure_web_channel(Config.SERVER_ADDRESS)
else:
Expand Down

0 comments on commit e659c83

Please sign in to comment.