mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Use store.persist_event rather than pdu_actions.persist_outgoing/pdu_actions.persist_received
This commit is contained in:
parent
a498df0428
commit
6966971a28
2 changed files with 2 additions and 21 deletions
|
@ -137,7 +137,7 @@ class ReplicationLayer(object):
|
|||
#yield self.pdu_actions.populate_previous_pdus(pdu)
|
||||
|
||||
# Save *before* trying to send
|
||||
yield self.pdu_actions.persist_outgoing(pdu)
|
||||
yield self.store.persist_event(pdu=pdu)
|
||||
|
||||
logger.debug("[%s] Persisted PDU", pdu.pdu_id)
|
||||
logger.debug("[%s] transaction_layer.enqueue_pdu... ", pdu.pdu_id)
|
||||
|
@ -450,7 +450,7 @@ class ReplicationLayer(object):
|
|||
logger.exception("Failed to get PDU")
|
||||
|
||||
# Persist the Pdu, but don't mark it as processed yet.
|
||||
yield self.pdu_actions.persist_received(pdu)
|
||||
yield self.store.persist_event(pdu=pdu)
|
||||
|
||||
if not backfilled:
|
||||
ret = yield self.handler.on_receive_pdu(pdu, backfilled=backfilled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue