diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-20 10:32:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 10:32:33 -0400 |
commit | dbc630a628e4fc6eb5eff09ce5edba062c0e9955 (patch) | |
tree | 2763c1411e608531526b269f9a2746121e117774 /synapse/storage/background_updates.py | |
parent | Add more types to synapse.storage.database. (#8127) (diff) | |
download | synapse-dbc630a628e4fc6eb5eff09ce5edba062c0e9955.tar.xz |
Use the JSON encoder without whitespace in more places. (#8124)
Diffstat (limited to 'synapse/storage/background_updates.py')
-rw-r--r-- | synapse/storage/background_updates.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py index 90a1f9e8b1..56818f4df8 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py @@ -16,9 +16,8 @@ import logging from typing import Optional -from canonicaljson import json - from synapse.metrics.background_process_metrics import run_as_background_process +from synapse.util import json_encoder from . import engines @@ -457,7 +456,7 @@ class BackgroundUpdater(object): progress(dict): The progress of the update. """ - progress_json = json.dumps(progress) + progress_json = json_encoder.encode(progress) self.db_pool.simple_update_one_txn( txn, |