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 (#12555)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Apr 26, 2022
1 parent ee1601e commit c48ab37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12555.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix sending opentracing contexts to whitelisted remote servers with device lists updates. Broken in v1.58.0rc1.
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 c48ab37

Please sign in to comment.