Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Aug 7, 2024
1 parent 5589d86 commit ad789d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rustplus/remote/ratelimiter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def refresh(self) -> None:
time_now = time.time()
time_delta = time_now - self.last_update
self.last_update = time_now
self.current = min(self.current + time_delta * self.refresh_per_second, self.max)
self.current = min(
self.current + time_delta * self.refresh_per_second, self.max
)


class RateLimiter:
Expand Down
3 changes: 2 additions & 1 deletion rustplus/remote/websocket/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ async def run(self) -> None:

except Exception as e:
self.logger.exception(
"An Error occurred whilst parsing the message from the server: %s", e
"An Error occurred whilst parsing the message from the server: %s",
e,
)
continue

Expand Down

0 comments on commit ad789d6

Please sign in to comment.