Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

HTTP Replication Client #15470

Merged
merged 17 commits into from
May 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move declaration in effort to avoid a rebase
realtyem committed May 2, 2023

Unverified

No user is associated with the committer email.
commit 3662f6116257b8d5fb64468e604dab1dcb568db9
14 changes: 7 additions & 7 deletions synapse/server.py
Original file line number Diff line number Diff line change
@@ -458,13 +458,6 @@ def get_proxied_blacklisted_http_client(self) -> SimpleHttpClient:
use_proxy=True,
)

@cache_in_self
def get_replication_client(self) -> ReplicationClient:
"""
An HTTP client for HTTP replication.
"""
return ReplicationClient(self)

@cache_in_self
def get_federation_http_client(self) -> MatrixFederationHttpClient:
"""
@@ -475,6 +468,13 @@ def get_federation_http_client(self) -> MatrixFederationHttpClient:
)
return MatrixFederationHttpClient(self, tls_client_options_factory)

@cache_in_self
def get_replication_client(self) -> ReplicationClient:
"""
An HTTP client for HTTP replication.
"""
return ReplicationClient(self)

@cache_in_self
def get_room_creation_handler(self) -> RoomCreationHandler:
return RoomCreationHandler(self)