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
c573794b
Commit
c573794b
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
Fix start_pushers vs _start_pushers confusion
parent
e564306e
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/push/pusherpool.py
+3
-3
3 additions, 3 deletions
synapse/push/pusherpool.py
with
3 additions
and
3 deletions
synapse/push/pusherpool.py
+
3
−
3
View file @
c573794b
...
...
@@ -41,7 +41,7 @@ class PusherPool:
def
__init__
(
self
,
_hs
):
self
.
hs
=
_hs
self
.
pusher_factory
=
PusherFactory
(
_hs
)
self
.
start_pushers
=
_hs
.
config
.
start_pushers
self
.
_should_
start_pushers
=
_hs
.
config
.
start_pushers
self
.
store
=
self
.
hs
.
get_datastore
()
self
.
clock
=
self
.
hs
.
get_clock
()
self
.
pushers
=
{}
...
...
@@ -49,7 +49,7 @@ class PusherPool:
def
start
(
self
):
"""
Starts the pushers off in a background process.
"""
if
not
self
.
start_pushers
:
if
not
self
.
_should_
start_pushers
:
logger
.
info
(
"
Not starting pushers because they are disabled in the config
"
)
return
run_as_background_process
(
"
start_pushers
"
,
self
.
_start_pushers
)
...
...
@@ -175,7 +175,7 @@ class PusherPool:
@defer.inlineCallbacks
def
start_pusher_by_id
(
self
,
app_id
,
pushkey
,
user_id
):
"""
Look up the details for the given pusher, and start it
"""
if
not
self
.
_start_pushers
:
if
not
self
.
_
should_
start_pushers
:
return
resultlist
=
yield
self
.
store
.
get_pushers_by_app_id_and_pushkey
(
...
...
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