Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix sending opentracing contexts to remote servers
Browse files Browse the repository at this point in the history
This was broken by #12365
  • Loading branch information
erikjohnston committed Apr 26, 2022
1 parent ee1601e commit 734cee8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion synapse/storage/databases/main/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,17 @@ async def get_uncoverted_outbound_room_pokes(

def get_uncoverted_outbound_room_pokes_txn(txn):
txn.execute(sql, (limit,))
return txn.fetchall()

return [
(
user_id,
device_id,
room_id,
stream_id,
db_to_json(opentracing_context),
)
for user_id, device_id, room_id, stream_id, opentracing_context in txn
]

return await self.db_pool.runInteraction(
"get_uncoverted_outbound_room_pokes", get_uncoverted_outbound_room_pokes_txn
Expand Down

0 comments on commit 734cee8

Please sign in to comment.