mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-12 04:52:26 +01:00
Register the media threadpool with our metrics (#17566)
This commit is contained in:
parent
f77bfbfa30
commit
fae75b0376
2 changed files with 5 additions and 0 deletions
1
changelog.d/17566.misc
Normal file
1
changelog.d/17566.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Speed up responding to media requests.
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue