Skip to content

Commit

Permalink
fix a bug in flower-client
Browse files Browse the repository at this point in the history
  • Loading branch information
panh99 committed Nov 28, 2023
1 parent 4d69794 commit 177c57e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/py/flwr/client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ def run_client() -> None:
# Obtain certificates
if args.insecure:
log(WARN, "Option `--insecure` was set. Starting insecure HTTP client.")
certificates = None
root_certificates = None
else:
# Load the certificates if provided, or load the system certificates
cert_path = args.root_certificates
if cert_path is None:
certificates = None
root_certificates = None
else:
certificates = Path(cert_path).read_bytes()
root_certificates = Path(cert_path).read_bytes()

print(args.root_certificates)
print(args.server)
print(args.callable_dir)
print(args.callable)
Expand All @@ -79,8 +80,8 @@ def _load() -> Flower:
server_address=args.server,
load_callable_fn=_load,
transport="grpc-rere", # Only
root_certificates=certificates,
insecure=not args.insecure,
root_certificates=root_certificates,
insecure=args.insecure,
)


Expand Down

0 comments on commit 177c57e

Please sign in to comment.