Skip to content

Commit f07eb3f

Browse files
fix(jsonl): lower chunk size (#12)
1 parent 7d017fd commit f07eb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/gitpod/_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
144144
return cast(
145145
R,
146146
cast("type[JSONLDecoder[Any]]", cast_to)(
147-
raw_iterator=self.http_response.iter_bytes(chunk_size=4096),
147+
raw_iterator=self.http_response.iter_bytes(chunk_size=64),
148148
line_type=extract_type_arg(cast_to, 0),
149149
http_response=self.http_response,
150150
),
@@ -154,7 +154,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
154154
return cast(
155155
R,
156156
cast("type[AsyncJSONLDecoder[Any]]", cast_to)(
157-
raw_iterator=self.http_response.aiter_bytes(chunk_size=4096),
157+
raw_iterator=self.http_response.aiter_bytes(chunk_size=64),
158158
line_type=extract_type_arg(cast_to, 0),
159159
http_response=self.http_response,
160160
),

0 commit comments

Comments
 (0)