Skip to content

Commit

Permalink
chore: revert ignoring of retry events
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-schoonjans committed Apr 12, 2024
1 parent f2d5b35 commit 233f6a1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/waylay/sdk/api/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ async def _iter_event_stream(
response: Response,
response_type: type[T],
select_path: str = "",
*,
_ignore_retry_events: bool = True,
) -> AsyncIterator[T]:
_response_type = _response_type_for_status_code(response.status_code, response_type)
content_type = response.headers.get("content-type", "")
Expand All @@ -391,8 +389,6 @@ async def _iter_event_stream(
event = __parse_event(event_str, content_type)
if not event:
continue
if _ignore_retry_events and len(event) == 1 and "retry" in event:
continue
_deserialized_event = _deserialize(
_extract_selected(event, select_path), _response_type
)
Expand Down

0 comments on commit 233f6a1

Please sign in to comment.