mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 16:34:55 -04:00
Refactor getting replication updates from database v2. (#7740)
This commit is contained in:
parent
d378c3da78
commit
67d7756fcf
11 changed files with 336 additions and 195 deletions
|
@ -294,6 +294,9 @@ class TypingHandler(object):
|
|||
rows.sort()
|
||||
|
||||
limited = False
|
||||
# We, unusually, use a strict limit here as we have all the rows in
|
||||
# memory rather than pulling them out of the database with a `LIMIT ?`
|
||||
# clause.
|
||||
if len(rows) > limit:
|
||||
rows = rows[:limit]
|
||||
current_id = rows[-1][0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue