New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CachingHostnameResolver #4803
CachingHostnameResolver #4803
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4803 +/- ##
=======================================
Coverage 87.85% 87.86%
=======================================
Files 160 160
Lines 9735 9749 +14
Branches 1437 1439 +2
=======================================
+ Hits 8553 8566 +13
- Misses 925 926 +1
Partials 257 257
|
d6b942c
to
87feb86
Compare
(Replying to #4802 (comment)) @michael-lazar Great work, thanks. Indeed, I got confused with the return types. I observed that in practice, the return type for I updated this PR with the approach from the linked comment, but I'm still a bit confused. Specially, I'm not sure about importing a class from an underscored module ( (tests are still missing!) @Gallaecio @kmike @wRAR any thoughts? |
What about just defining our own? The current upstream implementation seems rather simple. |
I like that! |
ddc853b
to
6a87cba
Compare
6a87cba
to
868826b
Compare
353e185
to
585e4a8
Compare
Fixes #4802
Based on #4802 (comment).
tests/CrawlerProcess/caching_hostname_resolver.py
times out on the currentmaster
branch (git checkout master -- scrapy/resolver && tox -e py38 -- tests/test_crawler.py
)