Skip to content
This repository was 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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
lints
  • Loading branch information
H-Shay committed Oct 29, 2021
commit 09941c890511cc309c8aed3886e33c0899ca15fe
9 changes: 6 additions & 3 deletions synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,15 +1309,18 @@ 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
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
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
prefix + "org.matrix.msc3083.v2.event",
use_float=True,
)

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