From 5709a8581099c98af9cc8679407a862e60829ed6 Mon Sep 17 00:00:00 2001 From: Heng Pan Date: Thu, 30 Nov 2023 17:18:08 +0000 Subject: [PATCH] update app.py --- src/py/flwr/driver/app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/py/flwr/driver/app.py b/src/py/flwr/driver/app.py index 3db879556db8..15f0556b6b03 100644 --- a/src/py/flwr/driver/app.py +++ b/src/py/flwr/driver/app.py @@ -20,7 +20,7 @@ import time from logging import INFO from pathlib import Path -from typing import Dict, Optional, Union +from typing import Dict, List, Optional, Union, cast from flwr.common import EventType, event from flwr.common.address import parse_address @@ -113,7 +113,6 @@ def start_driver( # pylint: disable=too-many-arguments, too-many-locals root_certificates = Path(root_certificates).read_bytes() driver = GrpcDriver(driver_service_address=address, certificates=root_certificates) driver.connect() - lock = threading.Lock() # Initialize the Driver API server and config initialized_server, initialized_config = init_defaults( @@ -133,7 +132,7 @@ def start_driver( # pylint: disable=too-many-arguments, too-many-locals thread = threading.Thread( target=update_client_manager, args=( - Driver(driver_service_address=address, certificates=certificates), + Driver(driver_service_address=address, certificates=root_certificates), initialized_server.client_manager(), ref_exit_flag, ),