diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py index 9e2f2d393af9..7a13b41e9b17 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py @@ -360,7 +360,7 @@ async def get_federatable_events_and_destinations( ) -> List[Tuple[EventBase, Collection[str]]]: with Measure(self.clock, "get_destinations_for_events"): # Fetch federation destinations per event, - # skip if get_destinations_for_event returns None, + # skip if get_destinations_for_event returns an empty collection, # return list of event->destinations pairs. return [ (event, dests)