Skip to content

Commit

Permalink
Turn off chunk scanning flags if passed with force_async flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmx committed Aug 12, 2021
1 parent 39a952e commit 4dad2c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/range_streams/codecs/png/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def __init__(
chunk_size : (:class:`int` | ``None``) The chunk size used for the
``httpx.Response.iter_raw`` response byte iterators
"""
if force_async:
# Mutually exclusive
scan_ihdr = enumerate_chunks = False
super().__init__(
url=url,
client=client,
Expand Down

0 comments on commit 4dad2c9

Please sign in to comment.