

def _handle_mult_prev_events(self, txn, events):
    '\n        For the given event, update the event edges table and forward and\n        backward extremities tables.\n        '
    self._simple_insert_many_txn(events, table='event_edges', values=[{
        'event_id': ev.event_id,
        'prev_event_id': e_id,
        'room_id': ev.room_id,
        'is_state': False,
    } for ev in events for (e_id, _) in ev.prev_events])
    self._update_extremeties(txn, events)

dataset/ETHPy150Open matrix-org/synapse/synapse/storage/event_federation.py EventFederationStore._handle_mult_prev_events/VarMisuse@20/70 `txn`->`events`