Skip to content

Commit

Permalink
accept different incoming processors but incoming links
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 14, 2024
1 parent 259a2a4 commit 2e36edf
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,12 @@ def has_same_route(
:rtype: bool
"""
# pylint:disable=protected-access
return (self.spinnaker_route == entry.spinnaker_route)
# False if the outgoing processor of linsk are diffeent
if self.spinnaker_route != entry.spinnaker_route:
return False
# True if the incoming link or processor is the same
if self._incoming == entry._incoming:
return True
# True if both have an incoming processor even if different
return (self._incoming > Router.MAX_LINKS_PER_ROUTER and
entry._incoming > Router.MAX_LINKS_PER_ROUTER)

0 comments on commit 2e36edf

Please sign in to comment.