Skip to content

Commit

Permalink
fix typo: backgroud -> background
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jul 12, 2019
1 parent 4c17a87 commit 24aa0e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/storage_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class StorageProviderWrapper(StorageProvider):
backend (StorageProvider)
store_local (bool): Whether to store new local files or not.
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
"""

Expand Down
8 changes: 4 additions & 4 deletions synapse/storage/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def __init__(self, db_conn, hs):
)

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
Expand All @@ -618,14 +618,14 @@ def start_cull():
hs.get_clock().looping_call(start_cull, THIRTY_MINUTES_IN_MS)

@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
for each of them.
"""

last_user = progress.get("user_id", "")

def _backgroud_update_set_deactivated_flag_txn(txn):
def _background_update_set_deactivated_flag_txn(txn):
txn.execute(
"""
SELECT
Expand Down Expand Up @@ -670,7 +670,7 @@ def _backgroud_update_set_deactivated_flag_txn(txn):
return False

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:
Expand Down

0 comments on commit 24aa0e0

Please sign in to comment.