From e4c5b1d9d6be6a38224d274e8f38099d0ab550ac Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 24 Mar 2020 16:00:54 +0000 Subject: Review comments --- synapse/replication/tcp/protocol.py | 1 - synapse/replication/tcp/streams/_base.py | 3 --- 2 files changed, 4 deletions(-) (limited to 'synapse') diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py index 67de5c3e7e..f81d2e2442 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py @@ -648,7 +648,6 @@ class ClientReplicationStreamProtocol(BaseReplicationStreamProtocol): # We've now caught up to position sent to us, notify handler. await self.handler.on_position(cmd.stream_name, cmd.token) - # We're now up to date wit the stream self.streams_connecting.discard(cmd.stream_name) if not self.streams_connecting: self.handler.finished_connecting() diff --git a/synapse/replication/tcp/streams/_base.py b/synapse/replication/tcp/streams/_base.py index d5b9c2831b..d7e9371a00 100644 --- a/synapse/replication/tcp/streams/_base.py +++ b/synapse/replication/tcp/streams/_base.py @@ -105,9 +105,6 @@ class Stream(object): to fetch. """ - if from_token in ("NOW", "now"): - return [], upto_token, False - from_token = int(from_token) if from_token == upto_token: -- cgit 1.4.1