@@ -394,12 +394,6 @@ def _reset(self):
394
394
# map room IDs to sets of users currently typing
395
395
self ._room_typing = {}
396
396
397
- def stream_positions (self ):
398
- # We must update this typing token from the response of the previous
399
- # sync. In particular, the stream id may "reset" back to zero/a low
400
- # value which we *must* use for the next replication request.
401
- return {"typing" : self ._latest_room_serial }
402
-
403
397
def process_replication_rows (self , token , rows ):
404
398
if self ._latest_room_serial > token :
405
399
# The master has gone backwards. To prevent inconsistent data, just
@@ -637,13 +631,6 @@ async def on_rdata(self, stream_name, token, rows):
637
631
)
638
632
await self .process_and_notify (stream_name , token , rows )
639
633
640
- def get_streams_to_replicate (self ):
641
- args = super (GenericWorkerReplicationHandler , self ).get_streams_to_replicate ()
642
- args .update (self .typing_handler .stream_positions ())
643
- if self .send_handler :
644
- args .update (self .send_handler .stream_positions ())
645
- return args
646
-
647
634
async def process_and_notify (self , stream_name , token , rows ):
648
635
try :
649
636
if self .send_handler :
@@ -778,9 +765,6 @@ def on_start(self):
778
765
def wake_destination (self , server : str ):
779
766
self .federation_sender .wake_destination (server )
780
767
781
- def stream_positions (self ):
782
- return {"federation" : self .federation_position }
783
-
784
768
async def process_replication_rows (self , stream_name , token , rows ):
785
769
# The federation stream contains things that we want to send out, e.g.
786
770
# presence, typing, etc.
0 commit comments