mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 01:27:49 -04:00
Move client command handling out of TCP protocol (#7185)
The aim here is to move the command handling out of the TCP protocol classes and to also merge the client and server command handling (so that we can reuse them for redis protocol). This PR simply moves the client paths to the new `ReplicationCommandHandler`, a future PR will move the server paths too.
This commit is contained in:
parent
d73bf18d13
commit
5016b162fc
12 changed files with 379 additions and 372 deletions
|
@ -19,6 +19,7 @@ import synapse.handlers.set_password
|
|||
import synapse.http.client
|
||||
import synapse.notifier
|
||||
import synapse.replication.tcp.client
|
||||
import synapse.replication.tcp.handler
|
||||
import synapse.rest.media.v1.media_repository
|
||||
import synapse.server_notices.server_notices_manager
|
||||
import synapse.server_notices.server_notices_sender
|
||||
|
@ -106,7 +107,11 @@ class HomeServer(object):
|
|||
pass
|
||||
def get_tcp_replication(
|
||||
self,
|
||||
) -> synapse.replication.tcp.client.ReplicationClientHandler:
|
||||
) -> synapse.replication.tcp.handler.ReplicationCommandHandler:
|
||||
pass
|
||||
def get_replication_data_handler(
|
||||
self,
|
||||
) -> synapse.replication.tcp.client.ReplicationDataHandler:
|
||||
pass
|
||||
def get_federation_registry(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue