Don't double json encode federation replication data

This commit is contained in:
Erik Johnston 2017-04-05 11:10:28 +01:00
parent a5c401bd12
commit f10ce8944b
2 changed files with 10 additions and 13 deletions

View file

@ -51,7 +51,6 @@ from daemonize import Daemonize
import sys
import logging
import gc
import ujson as json
logger = logging.getLogger("synapse.app.appservice")
@ -290,8 +289,7 @@ class FederationSenderHandler(object):
# Parse the rows in the stream
for row in rows:
typ = row.type
content_js = row.data
content = json.loads(content_js)
content = row.data
if typ == send_queue.PRESENCE_TYPE:
destination = content["destination"]