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

Commit 734cee8

Browse files
committed
Fix sending opentracing contexts to remote servers
This was broken by #12365
1 parent ee1601e commit 734cee8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

synapse/storage/databases/main/devices.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,17 @@ async def get_uncoverted_outbound_room_pokes(
17761776

17771777
def get_uncoverted_outbound_room_pokes_txn(txn):
17781778
txn.execute(sql, (limit,))
1779-
return txn.fetchall()
1779+
1780+
return [
1781+
(
1782+
user_id,
1783+
device_id,
1784+
room_id,
1785+
stream_id,
1786+
db_to_json(opentracing_context),
1787+
)
1788+
for user_id, device_id, room_id, stream_id, opentracing_context in txn
1789+
]
17801790

17811791
return await self.db_pool.runInteraction(
17821792
"get_uncoverted_outbound_room_pokes", get_uncoverted_outbound_room_pokes_txn

0 commit comments

Comments
 (0)