diff options
author | Erik Johnston <erik@matrix.org> | 2018-05-30 11:51:03 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-05-30 11:51:03 +0100 |
commit | 384731330d2a698b3bc0ec23961ad5669a3134e8 (patch) | |
tree | 807b220f1b9263b7f676b7bf3548b099260b8b74 /synapse/storage | |
parent | Remove unnecessary COALESCE (diff) | |
download | synapse-384731330d2a698b3bc0ec23961ad5669a3134e8.tar.xz |
Rename func to _insert_into_chunk_txn
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/events.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index cab5c18637..5194c4a48d 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1020,7 +1020,7 @@ class EventsStore(EventsWorkerStore): } ) - chunk_id, _ = self._compute_chunk_id_txn( + chunk_id, _ = self._insert_into_chunk_txn( txn, event.room_id, event.event_id, [eid for eid, _ in event.prev_events], ) @@ -1119,7 +1119,7 @@ class EventsStore(EventsWorkerStore): if event.internal_metadata.is_outlier(): chunk_id, _topo = None, 0 else: - chunk_id, _topo = self._compute_chunk_id_txn( + chunk_id, _topo = self._insert_into_chunk_txn( txn, event.room_id, event.event_id, [eid for eid, _ in event.prev_events], ) @@ -1358,10 +1358,9 @@ class EventsStore(EventsWorkerStore): (event.event_id, event.redacts) ) - def _compute_chunk_id_txn(self, txn, room_id, event_id, prev_event_ids): - """Computes the chunk ID and topological ordering for an event. - - Also handles updating chunk_graph table. + def _insert_into_chunk_txn(self, txn, room_id, event_id, prev_event_ids): + """Computes the chunk ID and topological ordering for an event and + handles updating chunk_graph table. Args: txn, |