summary refs log tree commit diff
path: root/synapse/federation/persistence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-05 18:21:19 +0100
committerErik Johnston <erik@matrix.org>2015-05-05 18:21:19 +0100
commit0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923 (patch)
treeaa5af8e6167cffa28a30d5eb329db1203678103c /synapse/federation/persistence.py
parentDon't insert without deduplication. In this case we never actually use this t... (diff)
parentAnd use buffer(...) there as well (diff)
downloadsynapse-0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923.tar.xz
Merge branch 'erikj/executemany' of github.com:matrix-org/synapse into erikj/SYN-371
Diffstat (limited to '')
-rw-r--r--synapse/federation/persistence.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/federation/persistence.py b/synapse/federation/persistence.py

index 76a9dcd777..1a7cc02f92 100644 --- a/synapse/federation/persistence.py +++ b/synapse/federation/persistence.py
@@ -23,8 +23,6 @@ from twisted.internet import defer from synapse.util.logutils import log_function -from syutil.jsonutil import encode_canonical_json - import logging @@ -71,7 +69,7 @@ class TransactionActions(object): transaction.transaction_id, transaction.origin, code, - encode_canonical_json(response) + response, ) @defer.inlineCallbacks @@ -101,5 +99,5 @@ class TransactionActions(object): transaction.transaction_id, transaction.destination, response_code, - encode_canonical_json(response_dict) + response_dict, )