MatrixSynapse/synapse
Richard van der Hoff 71a1abb8a1
Stop the master relaying USER_SYNC for other workers (#7318)
Long story short: if we're handling presence on the current worker, we shouldn't be sending USER_SYNC commands over replication.

In an attempt to figure out what is going on here, I ended up refactoring some bits of the presencehandler code, so the first 4 commits here are non-functional refactors to move this code slightly closer to sanity. (There's still plenty to do here :/). Suggest reviewing individual commits.

Fixes (I hope) #7257.
2020-04-22 22:39:04 +01:00
..
_scripts
api Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
app Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
appservice
config
crypto
events
federation
groups
handlers Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
http
logging
metrics
module_api
push
replication Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
res/templates
rest
server_notices
spam_checker_api
state
static
storage
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
secrets.py
server.py
server.pyi Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
types.py
visibility.py