Repository navigation
Conversation
reivilibre
left a comment
There was a problem hiding this comment.
Thank you very much, always nice to get a cleanup.
Some archaeology notes:
- Stable version introduced in: https://github.com/matrix-org/synapse/pull/10520 (Synapse v1.50.0, 2022 January)
- Unstable version introduced in: https://github.com/matrix-org/synapse/pull/5727 (Synapse v1.6.0, 2019 November)
- Part of MSC1756
| # also send the unstable version | ||
| # FIXME: remove this when enough servers have upgraded | ||
| # and remove the length budgeting above. | ||
| results.append(("org.matrix.signing_key_update", result)) |
There was a problem hiding this comment.
Now each entry only produces only one EDU, need to update the 'budgeting' logic on R668 and R691 to compensate.
There are also a bunch of stale comments to remove. :)
There was a problem hiding this comment.
I don't see any budgeting logic on R691..
There was a problem hiding this comment.
sorry for being elusive, I think I meant
if (
is_cross_signing_key_update
and user_id not in cross_signing_keys_by_user
):
# This will give rise to 2 device updates.
# If we don't have the budget, stop here!
if remaining_length_budget < 2:
breakI think that full block can come out; if we updated this directly we'd change the 2nd if to if remaining_length_budget < 1: BUT we already have assert remaining_length_budget >= 0 earlier, so there is no time it would hit this anymore
|
Perhaps someone else can pick this up later. I don't have enough know-how to fix the test failures. |
Pull request was closed
I think 5 years is enough.
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.