Skip to content

Commit

Permalink
default val for Grpc config
Browse files Browse the repository at this point in the history
  • Loading branch information
paer committed Jul 10, 2023
1 parent cdc1996 commit b5a3f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fed/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import fed._private.compatible_utils as compatible_utils
import fed._private.constants as fed_constants
import cloudpickle
from typing import Dict, Optional
from typing import Dict, List, Optional
import json


Expand Down Expand Up @@ -163,8 +163,8 @@ class CrossSiloGrpcCommConfig(CrossSiloCommConfig):
]
"""
def __init__(self,
grpc_channel_options,
grpc_retry_policy,
grpc_channel_options: List = None,
grpc_retry_policy: Dict[str, str] = None,
*args,
**kwargs):
super().__init__(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion fed/proxy/barriers.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def start_recv_proxy(
proxy_cls=proxy_cls
)
recver_proxy_actor.start.remote()
timeout = get_job_config().cross_silo_comm_config.timeout_in_seconds
timeout = proxy_config.timeout_in_seconds if proxy_config is not None else 60
server_state = ray.get(recver_proxy_actor.is_ready.remote(), timeout=timeout)
assert server_state[0], server_state[1]
logger.info("RecverProxy has successfully created.")
Expand Down

0 comments on commit b5a3f08

Please sign in to comment.