diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-11-03 12:58:57 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-11-03 12:58:57 +0000 |
commit | 71a452a324e45c338c6d91e6b17b92712157367c (patch) | |
tree | 2f95a26c9c8ff024c855ed7a8ca674e833dddca8 /synapse/federation/persistence.py | |
parent | more comment (diff) | |
parent | fix tests (diff) | |
download | synapse-71a452a324e45c338c6d91e6b17b92712157367c.tar.xz |
Merge branch 'dinsic' into matthew/shadow-server
Diffstat (limited to 'synapse/federation/persistence.py')
-rw-r--r-- | synapse/federation/persistence.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/federation/persistence.py b/synapse/federation/persistence.py index 9146215c21..74ffd13b4f 100644 --- a/synapse/federation/persistence.py +++ b/synapse/federation/persistence.py @@ -36,7 +36,7 @@ class TransactionActions(object): self.store = datastore @log_function - def have_responded(self, transaction): + def have_responded(self, origin, transaction): """ Have we already responded to a transaction with the same id and origin? @@ -50,11 +50,11 @@ class TransactionActions(object): "transaction_id") return self.store.get_received_txn_response( - transaction.transaction_id, transaction.origin + transaction.transaction_id, origin ) @log_function - def set_response(self, transaction, code, response): + def set_response(self, origin, transaction, code, response): """ Persist how we responded to a transaction. Returns: @@ -66,7 +66,7 @@ class TransactionActions(object): return self.store.set_received_txn_response( transaction.transaction_id, - transaction.origin, + origin, code, response, ) |