mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-11 12:31:58 +01:00
Fixup wording and remove dead code
This commit is contained in:
parent
bebe325e6c
commit
62564797f5
2 changed files with 2 additions and 2 deletions
|
@ -0,0 +1 @@
|
||||||
|
Refactor HTTP replication endpoints to reduce code duplication
|
|
@ -183,7 +183,6 @@ class ReplicationEndpoint(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
url_args = list(self.PATH_ARGS)
|
url_args = list(self.PATH_ARGS)
|
||||||
method = "GET"
|
|
||||||
handler = self._handle_request
|
handler = self._handle_request
|
||||||
method = self.METHOD
|
method = self.METHOD
|
||||||
|
|
||||||
|
@ -201,7 +200,7 @@ class ReplicationEndpoint(object):
|
||||||
|
|
||||||
def _cached_handler(self, request, txn_id, **kwargs):
|
def _cached_handler(self, request, txn_id, **kwargs):
|
||||||
"""Called on new incoming requests when caching is enabled. Checks
|
"""Called on new incoming requests when caching is enabled. Checks
|
||||||
if their is a cached response for the request and returns that,
|
if there is a cached response for the request and returns that,
|
||||||
otherwise calls `_handle_request` and caches its response.
|
otherwise calls `_handle_request` and caches its response.
|
||||||
"""
|
"""
|
||||||
# We just use the txn_id here, but we probably also want to use the
|
# We just use the txn_id here, but we probably also want to use the
|
||||||
|
|
Loading…
Reference in a new issue