Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
4162c39d
Unverified
Commit
4162c39d
authored
4 years ago
by
Andrew Morgan
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Port group attestation renewal slow down from matrix-org-hotfixes (#7442)
parent
e053c86a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/7442.misc
+1
-0
1 addition, 0 deletions
changelog.d/7442.misc
synapse/groups/attestations.py
+2
-4
2 additions, 4 deletions
synapse/groups/attestations.py
with
3 additions
and
4 deletions
changelog.d/7442.misc
0 → 100644
+
1
−
0
View file @
4162c39d
Run group attestation renewal in series rather than parallel for performance.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
synapse/groups/attestations.py
+
2
−
4
View file @
4162c39d
...
...
@@ -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
"
]))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment