0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 17:13:50 +01:00

And use buffer(...) there as well

This commit is contained in:
Erik Johnston 2015-05-05 18:20:01 +01:00
parent ed2584050f
commit 0cf7e480b4
2 changed files with 3 additions and 2 deletions

View file

@ -99,5 +99,5 @@ class TransactionActions(object):
transaction.transaction_id, transaction.transaction_id,
transaction.destination, transaction.destination,
response_code, response_code,
encode_canonical_json(response_dict) response_dict,
) )

View file

@ -162,7 +162,8 @@ class TransactionStore(SQLBaseStore):
return self.runInteraction( return self.runInteraction(
"delivered_txn", "delivered_txn",
self._delivered_txn, self._delivered_txn,
transaction_id, destination, code, response_dict transaction_id, destination, code,
buffer(encode_canonical_json(response_dict)),
) )
def _delivered_txn(self, txn, transaction_id, destination, def _delivered_txn(self, txn, transaction_id, destination,