forked-synapse/synapse/storage
Andrew Morgan 6f1a28de19
Fix incorrect time magnitude on delayed call (#10195)
Fixes https://github.com/matrix-org/synapse/issues/10030.

We were expecting milliseconds where we should have provided a value in seconds.

The impact of this bug isn't too bad. The code is intended to count the number of remote servers that the homeserver can see and report that as a metric. This metric is supposed to run initially 1 second after server startup, and every 60s as well. Instead, it ran 1,000 seconds after server startup, and every 60s after startup.

This fix allows for the correct metrics to be collected immediately, as well as preventing a random collection 1,000s in the future after startup.
2021-06-17 15:04:26 +01:00
..
databases Fix incorrect time magnitude on delayed call (#10195) 2021-06-17 15:04:26 +01:00
engines Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
schema Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
util Fix bug when running presence off master (#10149) 2021-06-11 10:27:12 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove unnecessary SystemRandom from SQLBaseStore (#9987) 2021-05-14 10:59:10 +01:00
background_updates.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
database.py Fix logging context when opening new DB connection (#10141) 2021-06-08 13:49:29 +01:00
keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
persist_events.py Fix persist_events to stop leaking opentracing contexts (#10193) 2021-06-17 11:21:53 +01:00
prepare_database.py Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
purge_events.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state.py Fix get_state_ids_for_event return type typo to match what the function actually does (#10050) 2021-05-24 10:43:33 +01:00
types.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00