Skip to content

Commit 6078d5a

Browse files
committed
Lint
1 parent f79001e commit 6078d5a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

synapse/http/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def _is_ip_blocked(
161161
return True
162162
return False
163163

164+
164165
# The delay used by the scheduler to schedule tasks "as soon as possible", while
165166
# still allowing other tasks to run between runs.
166167
_EPSILON = Duration(microseconds=1)

synapse/storage/databases/main/registration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,9 @@ def __init__(
27372737

27382738
# Create a background job for removing expired login tokens
27392739
if hs.config.worker.run_background_tasks:
2740-
self.clock.looping_call(self._delete_expired_login_tokens, Duration(minutes=30))
2740+
self.clock.looping_call(
2741+
self._delete_expired_login_tokens, Duration(minutes=30)
2742+
)
27412743

27422744
async def add_access_token_to_user(
27432745
self,

0 commit comments

Comments
 (0)