Skip to content
Snippets Groups Projects
Unverified Commit 4162c39d authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

Port group attestation renewal slow down from matrix-org-hotfixes (#7442)

parent e053c86a
No related branches found
No related tags found
No related merge requests found
Run group attestation renewal in series rather than parallel for performance.
\ No newline at end of file
......@@ -46,7 +46,6 @@ from twisted.internet import defer
from synapse.api.errors import HttpResponseException, RequestSendFailed, SynapseError
from synapse.metrics.background_process_metrics import run_as_background_process
from synapse.types import get_domain_from_id
from synapse.util.async_helpers import yieldable_gather_results
logger = logging.getLogger(__name__)
......@@ -208,6 +207,5 @@ class GroupAttestionRenewer(object):
"Error renewing attestation of %r in %r", user_id, group_id
)
await yieldable_gather_results(
_renew_attestation, ((row["group_id"], row["user_id"]) for row in rows)
)
for row in rows:
await _renew_attestation((row["group_id"], row["user_id"]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment