Skip to content

Commit

Permalink
fix(framework:skip) Remove create_node call on reconnect (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll authored Jun 9, 2024
1 parent 111eecc commit 8d08e12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/py/flwr/client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def _load_client_app() -> ClientApp:
)

run_tracker = _RunTracker()
_ = run_tracker

def _on_sucess(retry_state: RetryState) -> None:
if retry_state.tries > 1:
Expand All @@ -275,8 +276,6 @@ def _on_sucess(retry_state: RetryState) -> None:
retry_state.elapsed_time,
retry_state.tries,
)
if run_tracker.create_node:
run_tracker.create_node()

def _on_backoff(retry_state: RetryState) -> None:
if retry_state.tries == 1:
Expand Down Expand Up @@ -594,7 +593,6 @@ def _init_connection(transport: Optional[str], server_address: str) -> Tuple[

@dataclass
class _RunTracker:
create_node: Optional[Callable[[], None]] = None
interrupt: bool = False

def register_signal_handler(self) -> None:
Expand Down

0 comments on commit 8d08e12

Please sign in to comment.