Store federation stream positions in the database

This commit is contained in:
Erik Johnston 2016-11-21 11:28:37 +00:00
parent f8ee66250a
commit 7c9cdb2245
6 changed files with 95 additions and 25 deletions

View file

@ -187,6 +187,9 @@ class SlavedEventStore(BaseSlavedStore):
get_all_new_events_stream = DataStore.get_all_new_events_stream.__func__
get_federation_out_pos = DataStore.get_federation_out_pos.__func__
update_federation_out_pos = DataStore.update_federation_out_pos.__func__
def stream_positions(self):
result = super(SlavedEventStore, self).stream_positions()
result["events"] = self._stream_id_gen.get_current_token()