Add on_remote_server_up to ReplicationDataHandler

pull/7185/head
Erik Johnston 2020-04-01 17:32:36 +01:00
parent dc91879ee1
commit bf99c8e87e
2 changed files with 4 additions and 0 deletions

View File

@ -119,3 +119,6 @@ class ReplicationDataHandler:
async def on_position(self, stream_name: str, token: int): async def on_position(self, stream_name: str, token: int):
self.store.process_replication_rows(stream_name, token, []) self.store.process_replication_rows(stream_name, token, [])
def on_remote_server_up(self, server: str):
"""Called when get a new REMOTE_SERVER_UP command."""

View File

@ -165,6 +165,7 @@ class ReplicationCommandHandler:
async def on_REMOTE_SERVER_UP(self, cmd: RemoteServerUpCommand): async def on_REMOTE_SERVER_UP(self, cmd: RemoteServerUpCommand):
""""Called when get a new REMOTE_SERVER_UP command.""" """"Called when get a new REMOTE_SERVER_UP command."""
self._replication_data_handler.on_remote_server_up(cmd.data)
def get_currently_syncing_users(self): def get_currently_syncing_users(self):
"""Get the list of currently syncing users (if any). This is called """Get the list of currently syncing users (if any). This is called