mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 20:50:23 +03:00
Review comments
This commit is contained in:
parent
2380e401e4
commit
e4c5b1d9d6
3 changed files with 2 additions and 5 deletions
|
@ -175,7 +175,8 @@ client (C):
|
|||
#### POSITION (S)
|
||||
|
||||
On receipt of a POSITION command clients should check if they have missed any
|
||||
updates, and if so then fetch them out of band.
|
||||
updates, and if so then fetch them out of band. Sent in response to a
|
||||
REPLICATE command (but can happen at any time).
|
||||
|
||||
#### ERROR (S, C)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue