Remove redundant changes from synapse/replication/tcp/streams.py (#4813)

This was some hacky code (introduced in c10c71e70d) to make the presence stream
do nothing on hotfixes. We now ensure that no replication clients subscribe to
the presence stream, so this is redundant.
This commit is contained in:
Richard van der Hoff 2019-03-06 13:21:32 +00:00 committed by GitHub
parent 9e9572c79e
commit e9aa401994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,8 +265,8 @@ class PresenceStream(Stream):
store = hs.get_datastore()
presence_handler = hs.get_presence_handler()
self.current_token = lambda: 0
self.update_function = lambda _a, _b: []
self.current_token = store.get_current_presence_token
self.update_function = presence_handler.get_all_presence_updates
super(PresenceStream, self).__init__(hs)