Skip to content

Commit

Permalink
Removes broken rate limiting disable
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-russell committed May 17, 2024
1 parent b95f1a5 commit 49ef70f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions fractal/matrix/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fractal-matrix-client"
version = "0.0.5"
version = "0.0.6"
description = ""
authors = ["Mo Balaa <balaa@fractalnetworks.co>"]
readme = "README.md"
Expand Down

0 comments on commit 49ef70f

Please sign in to comment.