mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-31 08:33:33 -05:00
Correctly prepopulate queue
This commit is contained in:
parent
dc085ddf8c
commit
ae3bff3491
@ -394,8 +394,16 @@ class EventFederationStore(SQLBaseStore):
|
|||||||
(room_id, event_id, limit - len(event_results))
|
(room_id, event_id, limit - len(event_results))
|
||||||
)
|
)
|
||||||
|
|
||||||
for row in txn.fetchall():
|
depth = self._simple_select_one_onecol_txn(
|
||||||
queue.put((-row[0], row[1]))
|
txn,
|
||||||
|
table="events",
|
||||||
|
keyvalues={
|
||||||
|
"event_id": event_id,
|
||||||
|
},
|
||||||
|
retcol="depth"
|
||||||
|
)
|
||||||
|
|
||||||
|
queue.put((-depth, event_id))
|
||||||
|
|
||||||
while not queue.empty() and len(event_results) < limit:
|
while not queue.empty() and len(event_results) < limit:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user