Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
cfcfb57e
Commit
cfcfb57e
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Add new config param to docstring and add types
parent
d630c823
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/server.py
+3
-1
3 additions, 1 deletion
synapse/server.py
with
3 additions
and
1 deletion
synapse/server.py
+
3
−
1
View file @
cfcfb57e
...
...
@@ -34,6 +34,7 @@ from synapse.api.filtering import Filtering
from
synapse.api.ratelimiting
import
Ratelimiter
from
synapse.appservice.api
import
ApplicationServiceApi
from
synapse.appservice.scheduler
import
ApplicationServiceScheduler
from
synapse.config.homeserver
import
HomeServerConfig
from
synapse.crypto
import
context_factory
from
synapse.crypto.keyring
import
Keyring
from
synapse.events.builder
import
EventBuilderFactory
...
...
@@ -210,10 +211,11 @@ class HomeServer(object):
# instantiated during setup() for future return by get_datastore()
DATASTORE_CLASS
=
abc
.
abstractproperty
()
def
__init__
(
self
,
hostname
,
c
onfig
,
reactor
=
None
,
**
kwargs
):
def
__init__
(
self
,
hostname
:
str
,
config
:
HomeServerC
onfig
,
reactor
=
None
,
**
kwargs
):
"""
Args:
hostname : The hostname for the server.
config: The full config for the homeserver.
"""
if
not
reactor
:
from
twisted.internet
import
reactor
...
...
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