summary refs log tree commit diff
path: root/synapse/federation/persistence.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-26 18:57:17 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-26 18:57:17 +0100
commit6966971a28bb6dfed3daef6e5cd2e41b1ce34788 (patch)
treef1b859319060fa6d8578cb14e80fc8d517097d23 /synapse/federation/persistence.py
parentMove new event boilerplate in room handlers into a method on a base clase. (diff)
downloadsynapse-6966971a28bb6dfed3daef6e5cd2e41b1ce34788.tar.xz
Use store.persist_event rather than pdu_actions.persist_outgoing/pdu_actions.persist_received
Diffstat (limited to 'synapse/federation/persistence.py')
-rw-r--r--synapse/federation/persistence.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/synapse/federation/persistence.py b/synapse/federation/persistence.py
index 76d37a0c52..2286fca821 100644
--- a/synapse/federation/persistence.py
+++ b/synapse/federation/persistence.py
@@ -40,25 +40,6 @@ class PduActions(object):
         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`