@@ -1809,7 +1809,7 @@ def _add_device_outbound_room_poke_txn(
1809
1809
1810
1810
async def get_uncoverted_outbound_room_pokes (
1811
1811
self , limit : int = 10
1812
- ) -> List [Tuple [str , str , str , int , Optional [ Dict [str , str ] ]]]:
1812
+ ) -> List [Tuple [str , str , str , int , Dict [str , str ]]]:
1813
1813
"""Get device list changes by room that have not yet been handled and
1814
1814
written to `device_lists_outbound_pokes`.
1815
1815
@@ -1827,7 +1827,7 @@ async def get_uncoverted_outbound_room_pokes(
1827
1827
1828
1828
def get_uncoverted_outbound_room_pokes_txn (
1829
1829
txn : LoggingTransaction ,
1830
- ) -> List [Tuple [str , str , str , int , Optional [ Dict [str , str ] ]]]:
1830
+ ) -> List [Tuple [str , str , str , int , Dict [str , str ]]]:
1831
1831
txn .execute (sql , (limit ,))
1832
1832
1833
1833
return [
@@ -1836,7 +1836,7 @@ def get_uncoverted_outbound_room_pokes_txn(
1836
1836
device_id ,
1837
1837
room_id ,
1838
1838
stream_id ,
1839
- db_to_json (opentracing_context ),
1839
+ db_to_json (opentracing_context ) or {} ,
1840
1840
)
1841
1841
for user_id , device_id , room_id , stream_id , opentracing_context in txn
1842
1842
]
@@ -1852,7 +1852,7 @@ async def add_device_list_outbound_pokes(
1852
1852
room_id : str ,
1853
1853
stream_id : int ,
1854
1854
hosts : Collection [str ],
1855
- context : Optional [ Dict [str , str ] ],
1855
+ context : Dict [str , str ],
1856
1856
) -> None :
1857
1857
"""Queue the device update to be sent to the given set of hosts,
1858
1858
calculated from the room ID.
0 commit comments