Use store.persist_event rather than pdu_actions.persist_outgoing/pdu_actions.persist_received

This commit is contained in:
Mark Haines 2014-08-26 18:57:17 +01:00
parent a498df0428
commit 6966971a28
2 changed files with 2 additions and 21 deletions

View file

@ -39,25 +39,6 @@ class PduActions(object):
def __init__(self, datastore):
self.store = datastore
@log_function
def persist_received(self, pdu):
""" Persists the given `Pdu` that was received from a remote home
server.
Returns:
Deferred
"""
return self.store.persist_event(pdu=pdu)
@log_function
def persist_outgoing(self, pdu):
""" Persists the given `Pdu` that this home server created.
Returns:
Deferred
"""
return self.store.persist_event(pdu=pdu)
@log_function
def mark_as_processed(self, pdu):
""" Persist the fact that we have fully processed the given `Pdu`