瀏覽代碼

Add desc to `get_earliest_token_for_stats` (#13085)

Erik Johnston 1 年之前
父節點
當前提交
8ceed5e6b5
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      changelog.d/13085.misc
  2. 1 0
      synapse/storage/databases/main/stats.py

+ 1 - 0
changelog.d/13085.misc

@@ -0,0 +1 @@
+Correctly report prometheus DB stats for `get_earliest_token_for_stats`.

+ 1 - 0
synapse/storage/databases/main/stats.py

@@ -295,6 +295,7 @@ class StatsStore(StateDeltasStore):
             keyvalues={id_col: id},
             retcol="completed_delta_stream_id",
             allow_none=True,
+            desc="get_earliest_token_for_stats",
         )
 
     async def bulk_update_stats_delta(