mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 14:06:30 -05:00
Don't double json encode federation replication data
This commit is contained in:
parent
a5c401bd12
commit
f10ce8944b
2 changed files with 10 additions and 13 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue