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
Package registry
Container registry
Model registry
Operate
Terraform modules
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
Timo Ley
synapse
Commits
45768d16
Commit
45768d16
authored
6 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Use the RegistryProxy for appservices too
Signed-off-by:
Travis Ralston
<
travpc@gmail.com
>
parent
187a546b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/app/appservice.py
+2
-1
2 additions, 1 deletion
synapse/app/appservice.py
with
2 additions
and
1 deletion
synapse/app/appservice.py
+
2
−
1
View file @
45768d16
...
@@ -23,6 +23,7 @@ from synapse.config._base import ConfigError
...
@@ -23,6 +23,7 @@ from synapse.config._base import ConfigError
from
synapse.config.homeserver
import
HomeServerConfig
from
synapse.config.homeserver
import
HomeServerConfig
from
synapse.config.logger
import
setup_logging
from
synapse.config.logger
import
setup_logging
from
synapse.http.site
import
SynapseSite
from
synapse.http.site
import
SynapseSite
from
synapse.metrics
import
RegistryProxy
from
synapse.metrics.resource
import
METRICS_PREFIX
,
MetricsResource
from
synapse.metrics.resource
import
METRICS_PREFIX
,
MetricsResource
from
synapse.replication.slave.storage.appservice
import
SlavedApplicationServiceStore
from
synapse.replication.slave.storage.appservice
import
SlavedApplicationServiceStore
from
synapse.replication.slave.storage.directory
import
DirectoryStore
from
synapse.replication.slave.storage.directory
import
DirectoryStore
...
@@ -62,7 +63,7 @@ class AppserviceServer(HomeServer):
...
@@ -62,7 +63,7 @@ class AppserviceServer(HomeServer):
for
res
in
listener_config
[
"
resources
"
]:
for
res
in
listener_config
[
"
resources
"
]:
for
name
in
res
[
"
names
"
]:
for
name
in
res
[
"
names
"
]:
if
name
==
"
metrics
"
:
if
name
==
"
metrics
"
:
resources
[
METRICS_PREFIX
]
=
MetricsResource
(
self
)
resources
[
METRICS_PREFIX
]
=
MetricsResource
(
RegistryProxy
)
root_resource
=
create_resource_tree
(
resources
,
NoResource
())
root_resource
=
create_resource_tree
(
resources
,
NoResource
())
...
...
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