mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-24 01:19:46 -05:00
Incorporate review
This commit is contained in:
parent
f02f14e09a
commit
12fe2a29bc
@ -844,7 +844,7 @@ class RegistrationStore(
|
|||||||
rows = self.cursor_to_dict(txn)
|
rows = self.cursor_to_dict(txn)
|
||||||
|
|
||||||
if not rows:
|
if not rows:
|
||||||
return True
|
return True, 0
|
||||||
|
|
||||||
rows_processed_nb = 0
|
rows_processed_nb = 0
|
||||||
|
|
||||||
@ -860,9 +860,9 @@ class RegistrationStore(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if batch_size > len(rows):
|
if batch_size > len(rows):
|
||||||
return (True, rows_processed_nb)
|
return True, len(rows)
|
||||||
else:
|
else:
|
||||||
return (False, rows_processed_nb)
|
return False, len(rows)
|
||||||
|
|
||||||
end, nb_processed = yield self.runInteraction(
|
end, nb_processed = yield self.runInteraction(
|
||||||
"users_set_deactivated_flag", _background_update_set_deactivated_flag_txn
|
"users_set_deactivated_flag", _background_update_set_deactivated_flag_txn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user