Skip to content

Commit

Permalink
fix max_concurrency.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaihui committed Jul 27, 2023
1 parent 984d4aa commit 349ff62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fed/proxy/barriers.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _start_receiver_proxy(
if proxy_config.recv_resource_label is not None:
actor_options.update({"resources": proxy_config.recv_resource_label})
if proxy_config.max_concurrency:
actor_options.update("max_concurrency", proxy_config.max_concurrency)
actor_options.update({"max_concurrency", proxy_config.max_concurrency})

logger.debug(f"Starting ReceiverProxyActor with options: {actor_options}")

Expand Down Expand Up @@ -264,7 +264,7 @@ def _start_sender_proxy(
if proxy_config.send_resource_label:
actor_options.update({"resources": proxy_config.send_resource_label})
if proxy_config.max_concurrency:
actor_options.update("max_concurrency", proxy_config.max_concurrency)
actor_options.update({"max_concurrency", proxy_config.max_concurrency})

logger.debug(f"Starting SenderProxyActor with options: {actor_options}")
global _SENDER_PROXY_ACTOR
Expand Down Expand Up @@ -385,7 +385,7 @@ def _start_sender_receiver_proxy(
}
)
if proxy_config.max_concurrency:
actor_options.update("max_concurrency", proxy_config.max_concurrency)
actor_options.update({"max_concurrency", proxy_config.max_concurrency})

logger.debug(f"Starting ReceiverProxyActor with options: {actor_options}")

Expand Down

0 comments on commit 349ff62

Please sign in to comment.