summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorShay <shaysquared@gmail.com>2021-11-01 09:28:04 -0700
committerGitHub <noreply@github.com>2021-11-01 09:28:04 -0700
commite81fa9264873369653171157514ff68226491fff (patch)
treeccdf2e1e6ef8dafe8e07e8154a7168850b45948e /synapse/federation
parentFix a bug in unit test `test_block_room_and_not_purge` (#11226) (diff)
downloadsynapse-e81fa9264873369653171157514ff68226491fff.tar.xz
Add `use_float=true` to ijson calls in Synapse (#11217)
* add use_float=true to ijson calls

* lints

* add changelog

* Update changelog.d/11217.bugfix

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transport/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py
index d963178838..10b5aa5af8 100644
--- a/synapse/federation/transport/client.py
+++ b/synapse/federation/transport/client.py
@@ -1310,14 +1310,17 @@ class SendJoinParser(ByteParser[SendJoinResponse]):
         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: