mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:56:42 -04:00
Add missing type hints to config base classes (#11377)
This commit is contained in:
parent
7cebaf9644
commit
55669bd3de
13 changed files with 184 additions and 109 deletions
|
@ -1198,8 +1198,9 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore):
|
|||
expiration_ts = now_ms + self._account_validity_period
|
||||
|
||||
if use_delta:
|
||||
assert self._account_validity_startup_job_max_delta is not None
|
||||
expiration_ts = random.randrange(
|
||||
expiration_ts - self._account_validity_startup_job_max_delta,
|
||||
int(expiration_ts - self._account_validity_startup_job_max_delta),
|
||||
expiration_ts,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue