Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
slow down group attestation renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed May 1, 2020
1 parent 89f9334 commit 14bb4cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions synapse/groups/attestations.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,5 @@ def _renew_attestation(group_user: Tuple[str, str]):
"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 comments on commit 14bb4cf

Please sign in to comment.