mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Remove the unused /pull federation API (#4118)
This commit is contained in:
parent
0794504bce
commit
2e223a8c22
1
changelog.d/4118.removal
Normal file
1
changelog.d/4118.removal
Normal file
@ -0,0 +1 @@
|
|||||||
|
The obsolete and non-functional /pull federation endpoint has been removed.
|
@ -323,11 +323,6 @@ class FederationServer(FederationBase):
|
|||||||
else:
|
else:
|
||||||
defer.returnValue((404, ""))
|
defer.returnValue((404, ""))
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
@log_function
|
|
||||||
def on_pull_request(self, origin, versions):
|
|
||||||
raise NotImplementedError("Pull transactions not implemented")
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_query_request(self, query_type, args):
|
def on_query_request(self, query_type, args):
|
||||||
received_queries_counter.labels(query_type).inc()
|
received_queries_counter.labels(query_type).inc()
|
||||||
|
@ -362,14 +362,6 @@ class FederationSendServlet(BaseFederationServlet):
|
|||||||
defer.returnValue((code, response))
|
defer.returnValue((code, response))
|
||||||
|
|
||||||
|
|
||||||
class FederationPullServlet(BaseFederationServlet):
|
|
||||||
PATH = "/pull/"
|
|
||||||
|
|
||||||
# This is for when someone asks us for everything since version X
|
|
||||||
def on_GET(self, origin, content, query):
|
|
||||||
return self.handler.on_pull_request(query["origin"][0], query["v"])
|
|
||||||
|
|
||||||
|
|
||||||
class FederationEventServlet(BaseFederationServlet):
|
class FederationEventServlet(BaseFederationServlet):
|
||||||
PATH = "/event/(?P<event_id>[^/]*)/"
|
PATH = "/event/(?P<event_id>[^/]*)/"
|
||||||
|
|
||||||
@ -1261,7 +1253,6 @@ class FederationGroupsSettingJoinPolicyServlet(BaseFederationServlet):
|
|||||||
|
|
||||||
FEDERATION_SERVLET_CLASSES = (
|
FEDERATION_SERVLET_CLASSES = (
|
||||||
FederationSendServlet,
|
FederationSendServlet,
|
||||||
FederationPullServlet,
|
|
||||||
FederationEventServlet,
|
FederationEventServlet,
|
||||||
FederationStateServlet,
|
FederationStateServlet,
|
||||||
FederationStateIdsServlet,
|
FederationStateIdsServlet,
|
||||||
|
Loading…
Reference in New Issue
Block a user