diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-04-03 15:09:48 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-04-03 15:09:48 +0100 |
commit | 3ee4ad09eb9bcd0214da83b66214afa3ddb08116 (patch) | |
tree | 401a8c24386215d03723f26c4d59437b92e76239 /synapse/replication/tcp/commands.py | |
parent | Use static JSONEncoders (diff) | |
download | synapse-3ee4ad09eb9bcd0214da83b66214afa3ddb08116.tar.xz |
Fix json encoding bug in replication
json encoders have an encode method, not a dumps method.
Diffstat (limited to '')
-rw-r--r-- | synapse/replication/tcp/commands.py | 2 |
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), )) |