mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-31 18:16:24 -05:00
fix typo: backgroud -> background
This commit is contained in:
parent
4c17a87606
commit
24aa0e0a5b
@ -67,7 +67,7 @@ class StorageProviderWrapper(StorageProvider):
|
|||||||
backend (StorageProvider)
|
backend (StorageProvider)
|
||||||
store_local (bool): Whether to store new local files or not.
|
store_local (bool): Whether to store new local files or not.
|
||||||
store_synchronous (bool): Whether to wait for file to be successfully
|
store_synchronous (bool): Whether to wait for file to be successfully
|
||||||
uploaded, or todo the upload in the backgroud.
|
uploaded, or todo the upload in the background.
|
||||||
store_remote (bool): Whether remote media should be uploaded
|
store_remote (bool): Whether remote media should be uploaded
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -603,7 +603,7 @@ class RegistrationStore(
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.register_background_update_handler(
|
self.register_background_update_handler(
|
||||||
"users_set_deactivated_flag", self._backgroud_update_set_deactivated_flag
|
"users_set_deactivated_flag", self._background_update_set_deactivated_flag
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a background job for culling expired 3PID validity tokens
|
# Create a background job for culling expired 3PID validity tokens
|
||||||
@ -618,14 +618,14 @@ class RegistrationStore(
|
|||||||
hs.get_clock().looping_call(start_cull, THIRTY_MINUTES_IN_MS)
|
hs.get_clock().looping_call(start_cull, THIRTY_MINUTES_IN_MS)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _backgroud_update_set_deactivated_flag(self, progress, batch_size):
|
def _background_update_set_deactivated_flag(self, progress, batch_size):
|
||||||
"""Retrieves a list of all deactivated users and sets the 'deactivated' flag to 1
|
"""Retrieves a list of all deactivated users and sets the 'deactivated' flag to 1
|
||||||
for each of them.
|
for each of them.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
last_user = progress.get("user_id", "")
|
last_user = progress.get("user_id", "")
|
||||||
|
|
||||||
def _backgroud_update_set_deactivated_flag_txn(txn):
|
def _background_update_set_deactivated_flag_txn(txn):
|
||||||
txn.execute(
|
txn.execute(
|
||||||
"""
|
"""
|
||||||
SELECT
|
SELECT
|
||||||
@ -670,7 +670,7 @@ class RegistrationStore(
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
end = yield self.runInteraction(
|
end = yield self.runInteraction(
|
||||||
"users_set_deactivated_flag", _backgroud_update_set_deactivated_flag_txn
|
"users_set_deactivated_flag", _background_update_set_deactivated_flag_txn
|
||||||
)
|
)
|
||||||
|
|
||||||
if end:
|
if end:
|
||||||
|
Loading…
Reference in New Issue
Block a user