Skip to content

Commit

Permalink
Remove Generator in store_search_entries_txn
Browse files Browse the repository at this point in the history
from SearchWorkerStore
  • Loading branch information
realtyem committed Oct 10, 2024
1 parent f6a3e5e commit e989c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def store_search_entries_txn(
VALUES (?,?,?,to_tsvector('english', ?),?,?)
"""

args1 = (
args1 = [
(
entry.event_id,
entry.room_id,
Expand All @@ -104,7 +104,7 @@ def store_search_entries_txn(
entry.origin_server_ts,
)
for entry in entries
)
]

txn.execute_batch(sql, args1)

Expand Down

0 comments on commit e989c21

Please sign in to comment.