synapse/synapse/storage
Erik Johnston 1bddd25a85
Port Clock functions to use Duration class (#19229)
This changes the arguments in clock functions to be `Duration` and
converts call sites and constants into `Duration`. There are still some
more functions around that should be converted (e.g.
`timeout_deferred`), but we leave that to another PR.

We also changes `.as_secs()` to return a float, as the rounding broke
things subtly. The only reason to keep it (its the same as
`timedelta.total_seconds()`) is for symmetry with `as_millis()`.

Follows on from https://github.com/element-hq/synapse/pull/19223
2025-12-01 13:55:06 +00:00
..
controllers Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
databases Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
engines Remove support for PostgreSQL 13 (#19170) 2025-11-13 19:38:59 +00:00
schema Expire sliding sync connections (#19211) 2025-11-25 10:20:47 +00:00
util Improve documentation around streams, particularly ID generators and adding new streams. (#18943) 2025-11-10 13:07:22 +00:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_base.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
admin_client_config.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
background_updates.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
database.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
invite_rule.py Implement MSC4380: Invite blocking (#19203) 2025-11-26 16:12:14 +00:00
keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
prepare_database.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
push_rule.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
roommember.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
types.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00