mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:44:52 -04:00
Fix relations in worker mode
This commit is contained in:
parent
33453419b0
commit
b5c62c6b26
5 changed files with 28 additions and 13 deletions
|
@ -109,7 +109,7 @@ class AggregationPaginationToken(object):
|
|||
return "%d-%d" % (self.count, self.stream)
|
||||
|
||||
|
||||
class RelationsStore(SQLBaseStore):
|
||||
class RelationsWorkerStore(SQLBaseStore):
|
||||
@cached(tree=True)
|
||||
def get_relations_for_event(
|
||||
self,
|
||||
|
@ -318,6 +318,8 @@ class RelationsStore(SQLBaseStore):
|
|||
"get_aggregation_groups_for_event", _get_aggregation_groups_for_event_txn
|
||||
)
|
||||
|
||||
|
||||
class RelationsStore(RelationsWorkerStore):
|
||||
def _handle_event_relations(self, txn, event):
|
||||
"""Handles inserting relation data during peristence of events
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue