From 49ef70f78086d3dad287d9f634b40d935edc10bc Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 17 May 2024 16:55:48 -0500 Subject: [PATCH] Removes broken rate limiting disable --- fractal/matrix/async_client.py | 7 ------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/fractal/matrix/async_client.py b/fractal/matrix/async_client.py index 7e3f911..d3ac57e 100644 --- a/fractal/matrix/async_client.py +++ b/fractal/matrix/async_client.py @@ -245,19 +245,12 @@ async def register_with_token( """ matrix_id = matrix_id.lower() username = parse_matrix_id(matrix_id)[0] - access_token = self.access_token res = await super().register_with_token( username, password, registration_token, device_name=device_name ) if isinstance(res, RegisterErrorResponse): raise Exception(res.message) - # register will replace the access token that's on the client with the one returned - # from a successful registration. We want to keep the original access token. - self.access_token = access_token - if disable_ratelimiting: - await self.disable_ratelimiting(matrix_id) - return res.access_token async def upload_file( diff --git a/pyproject.toml b/pyproject.toml index 95a5ec4..8d6acf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fractal-matrix-client" -version = "0.0.5" +version = "0.0.6" description = "" authors = ["Mo Balaa "] readme = "README.md"