feat/#63 - cleverswarm unidirectional command
This commit is contained in:
@@ -50,7 +50,12 @@ class RouterBase:
|
||||
return self.route_database.find_route(message.domain(), message.path())
|
||||
|
||||
def find_route_by_service(self, service_name: str) -> Optional[AMQRoute]:
|
||||
return self.route_database.find_route_by_service(service_name)
|
||||
_route: Optional[AMQRoute] = self.route_database.find_route_by_service(service_name)
|
||||
if _route is None:
|
||||
for route in self.own_routes:
|
||||
if route.component_name == service_name:
|
||||
_route = route
|
||||
return _route
|
||||
|
||||
def add_routes(self, message: str) -> None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user