summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-03 15:09:48 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-03 15:09:48 +0100
commit3ee4ad09eb9bcd0214da83b66214afa3ddb08116 (patch)
tree401a8c24386215d03723f26c4d59437b92e76239 /synapse
parentUse static JSONEncoders (diff)
downloadsynapse-3ee4ad09eb9bcd0214da83b66214afa3ddb08116.tar.xz
Fix json encoding bug in replication
json encoders have an encode method, not a dumps method.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/replication/tcp/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/commands.py b/synapse/replication/tcp/commands.py
index 34bcf903a3..12aac3cc6b 100644
--- a/synapse/replication/tcp/commands.py
+++ b/synapse/replication/tcp/commands.py
@@ -109,7 +109,7 @@ class RdataCommand(Command):
         return " ".join((
             self.stream_name,
             str(self.token) if self.token is not None else "batch",
-            _json_encoder.dumps(self.row),
+            _json_encoder.encode(self.row),
         ))