diff options
author | Tulir Asokan <tulir@maunium.net> | 2023-05-09 22:02:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 15:02:36 -0400 |
commit | 86d541f37c1bc9197a6f561b31f3aa359740b4bd (patch) | |
tree | c5ffe070e1933f8ff0bb202ec1b9ee2ab6f36c1c /synapse/rest/client/appservice_ping.py | |
parent | HTTP Replication Client (#15470) (diff) | |
download | synapse-86d541f37c1bc9197a6f561b31f3aa359740b4bd.tar.xz |
Stabilize MSC2659 support for AS ping endpoint. (#15528)
Diffstat (limited to 'synapse/rest/client/appservice_ping.py')
-rw-r--r-- | synapse/rest/client/appservice_ping.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/synapse/rest/client/appservice_ping.py b/synapse/rest/client/appservice_ping.py index 31466a4ad4..3f553d14d1 100644 --- a/synapse/rest/client/appservice_ping.py +++ b/synapse/rest/client/appservice_ping.py @@ -39,9 +39,8 @@ logger = logging.getLogger(__name__) class AppservicePingRestServlet(RestServlet): PATTERNS = client_patterns( - "/fi.mau.msc2659/appservice/(?P<appservice_id>[^/]*)/ping", - unstable=True, - releases=(), + "/appservice/(?P<appservice_id>[^/]*)/ping", + releases=("v1",), ) def __init__(self, hs: "HomeServer"): @@ -107,9 +106,8 @@ class AppservicePingRestServlet(RestServlet): duration = time.monotonic() - start - return HTTPStatus.OK, {"duration": int(duration * 1000)} + return HTTPStatus.OK, {"duration_ms": int(duration * 1000)} def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: - if hs.config.experimental.msc2659_enabled: - AppservicePingRestServlet(hs).register(http_server) + AppservicePingRestServlet(hs).register(http_server) |