diff options
author | reivilibre <38398653+reivilibre@users.noreply.github.com> | 2019-08-27 13:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 13:26:08 +0100 |
commit | 4b7bf2e413a6012c87e3d12f7bf4183b9638836b (patch) | |
tree | 8297af2340c43c7cce5217702e23fe6dbbd2076f | |
parent | Merge branch 'rei/rss_target' into rei/rss_inc2 (diff) | |
download | synapse-4b7bf2e413a6012c87e3d12f7bf4183b9638836b.tar.xz |
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
-rw-r--r-- | synapse/storage/stats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index 5a7dfde926..62047839cc 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -134,7 +134,7 @@ class StatsStore(StateDeltasStore): def _upsert_with_additive_relatives_txn( self, txn, table, keyvalues, absolutes, additive_relatives ): - """ + """Used to update values in the stats tables. Args: txn: Transaction @@ -322,7 +322,7 @@ class StatsStore(StateDeltasStore): elif complete_with_stream_id is not None: absolute_fields = absolute_fields.copy() - absolute_fields["completed_delta_stream_id"] = complete_with_stream_id + absolute_fields["completed_delta_stream_id"] = complete_with_stream_id # first upsert the current table self._upsert_with_additive_relatives_txn( |