Skip to content

Commit

Permalink
Add httpcore dependencies definition ">=0.17.2" because older version…
Browse files Browse the repository at this point in the history
…s do not have "socket_options" that the newer httpx now uses

Adjust LOGGING_INFO_EVENT_MODULUS from 5 to 25 to reduce the rate of log status messages
  • Loading branch information
ndejong committed Nov 13, 2023
1 parent 3dfaebd commit 35fc48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ hibp-downloader = "hibp_downloader.main:entrypoint"
[tool.poetry.dependencies]
python = "^3.8"
"httpx[http2]" = "^0.25" # https://pypi.org/project/httpx/#history
httpcore = ">=0.17.2" # https://pypi.org/project/httpcore/#history
"typer[all]" = "^0.9" # https://pypi.org/project/typer/#history
shellingham = "^1.5" # https://pypi.org/project/shellingham/#history
aiofiles = "^23.0" # https://pypi.org/project/aiofiles/#history
Expand Down
2 changes: 1 addition & 1 deletion src/hibp_downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MULTIPROCESSING_PROCESSES_DEFAULT = int(cpu_count() if cpu_count() else 4) # type: ignore[arg-type]
MULTIPROCESSING_PREFIXES_CHUNK_SIZE = 10
APPROX_GZIP_BYTES_PER_HASH = 20.674
LOGGING_INFO_EVENT_MODULUS = 5
LOGGING_INFO_EVENT_MODULUS = 25

# encoding_type
# The encoded response-content is stored as-is without trying to decode (ie decompress) it into a new encoding type
Expand Down

0 comments on commit 35fc48b

Please sign in to comment.