Skip to content

Commit

Permalink
Use abstract Driver (#3281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Apr 22, 2024
1 parent af1db12 commit d22be5c
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 396 deletions.
4 changes: 2 additions & 2 deletions src/py/flwr/server/compat/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from flwr.server.server_config import ServerConfig
from flwr.server.strategy import Strategy

from ..driver import Driver
from ..driver import Driver, GrpcDriver
from .app_utils import start_update_client_manager_thread

DEFAULT_SERVER_ADDRESS_DRIVER = "[::]:9091"
Expand Down Expand Up @@ -114,7 +114,7 @@ def start_driver( # pylint: disable=too-many-arguments, too-many-locals
# Create the Driver
if isinstance(root_certificates, str):
root_certificates = Path(root_certificates).read_bytes()
driver = Driver(
driver = GrpcDriver(
driver_service_address=address, root_certificates=root_certificates
)

Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/server/compat/driver_client_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from flwr.proto import driver_pb2, node_pb2, task_pb2 # pylint: disable=E0611
from flwr.server.client_proxy import ClientProxy

from ..driver.driver import GrpcDriverHelper
from ..driver.grpc_driver import GrpcDriverHelper

SLEEP_TIME = 1

Expand Down
3 changes: 3 additions & 0 deletions src/py/flwr/server/driver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@


from .driver import Driver
from .grpc_driver import GrpcDriver, GrpcDriverHelper

__all__ = [
"Driver",
"GrpcDriver",
"GrpcDriverHelper",
]
140 changes: 0 additions & 140 deletions src/py/flwr/server/driver/abc_driver.py

This file was deleted.

Loading

0 comments on commit d22be5c

Please sign in to comment.