Skip to content

Commit

Permalink
More documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottslewis committed May 30, 2018
1 parent c07814d commit b334fc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pelix/rsa/providers/discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _get_matching_endpoint_event_listeners(self,ed):
matching_filter = f
break
if matching_filter:
result.append(l[0])
result.append((l[0],matching_filter))
return result

def _add_discovered_endpoint(self,ed):
Expand Down Expand Up @@ -285,7 +285,7 @@ def _fire_endpoint_event(self,event_type,ed):
event = EndpointEvent(event_type, ed)
for listener in listeners:
try:
listener.endpoint_changed(event,'matched')
listener[0].endpoint_changed(event,listener[1])
except:
_logger.exception('Exception calling endpoint event listener.endpoint_changed for listener={0} and event={1}'.format(listener,event))

Expand Down
2 changes: 1 addition & 1 deletion pelix/rsa/topologymanagers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def remote_admin_event(self, event):
self._unadvertise_endpoint(event.get_description())

def _handle_endpoint_event(self,endpoint_event,matched_filter):
print('TopologyManager._handle_endpoint_event={0},{1},filter={2}'.format(self,endpoint_event,matched_filter))
print('TopologyManager._handle_endpoint_event={0},{1},matched_filter={2}'.format(self,endpoint_event,matched_filter))

# impl of EndpointEventListener
def endpoint_changed(self,endpoint_event,matched_filter):
Expand Down

0 comments on commit b334fc9

Please sign in to comment.