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

Add use_float=true to ijson calls in Synapse #11217

Merged
merged 4 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11217.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes a bug introduced in #9958 which made it impossible to join rooms that return a send_join response containing floats.
H-Shay marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,14 +1310,17 @@ def __init__(self, room_version: RoomVersion, v1_api: bool):
self._coro_state = ijson.items_coro(
_event_list_parser(room_version, self._response.state),
prefix + "state.item",
use_float=True,
)
self._coro_auth = ijson.items_coro(
_event_list_parser(room_version, self._response.auth_events),
prefix + "auth_chain.item",
use_float=True,
)
self._coro_event = ijson.kvitems_coro(
_event_parser(self._response.event_dict),
prefix + "org.matrix.msc3083.v2.event",
use_float=True,
)

def write(self, data: bytes) -> int:
Expand Down