And use buffer(...) there as well

pull/137/head
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.destination,
response_code,
encode_canonical_json(response_dict)
response_dict,
)

View File

@ -162,7 +162,8 @@ class TransactionStore(SQLBaseStore):
return self.runInteraction(
"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,