Skip to content

Commit

Permalink
Avoid passing unused values to method
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Jan 10, 2024
1 parent 6a9965f commit 7aaea7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swagger_server/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def remove_connection(self, connection):
# call pce to remove connection
pass

def _send_breakdown_to_lc(self, temanager, connection, solution):
breakdown = temanager.generate_connection_breakdown(solution)
def _send_breakdown_to_lc(self, breakdown):
logger.debug(f"-- BREAKDOWN: {json.dumps(breakdown)}")

if breakdown is None:
Expand Down Expand Up @@ -158,7 +157,8 @@ def place_connection(self, connection_request: dict) -> Tuple[str, int]:
if solution is None or solution.connection_map is None:
return "Could not solve the request", 400

self._send_breakdown_to_lc(temanager, connection, solution)
breakdown = temanager.generate_connection_breakdown(solution)
self._send_breakdown_to_lc(breakdown)

def handle_link_failure(self, msg_json):
logger.debug("---Handling connections that contain failed link.---")
Expand Down

0 comments on commit 7aaea7c

Please sign in to comment.