

@defer.inlineCallbacks
def get_missing_events(self, room_id, earliest_events, latest_events, limit, min_depth):
    ids = (yield self.runInteraction('get_missing_events', self._get_missing_events, room_id, earliest_events, latest_events, limit, min_depth))
    events = (yield limit._get_events(ids))
    events = sorted([ev for ev in events if (ev.depth >= min_depth)], key=(lambda e: e.depth))
    defer.returnValue(events[:limit])

dataset/ETHPy150Open matrix-org/synapse/synapse/storage/event_federation.py EventFederationStore.get_missing_events/VarMisuse@55/90 `self`->`limit`