0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 21:43:50 +01:00

Register the media threadpool with our metrics (#17566)

This commit is contained in:
Andrew Morgan 2024-08-14 15:11:22 +01:00 committed by GitHub
parent f77bfbfa30
commit fae75b0376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

1
changelog.d/17566.misc Normal file
View file

@ -0,0 +1 @@
Speed up responding to media requests.

View file

@ -124,6 +124,7 @@ from synapse.http.client import (
)
from synapse.http.matrixfederationclient import MatrixFederationHttpClient
from synapse.media.media_repository import MediaRepository
from synapse.metrics import register_threadpool
from synapse.metrics.common_usage_metrics import CommonUsageMetricsManager
from synapse.module_api import ModuleApi
from synapse.module_api.callbacks import ModuleApiCallbacks
@ -959,4 +960,7 @@ class HomeServer(metaclass=abc.ABCMeta):
"during", "shutdown", media_threadpool.stop
)
# Register the threadpool with our metrics.
register_threadpool("media", media_threadpool)
return media_threadpool