mirror of https://github.com/scrapy/scrapy.git
minor comments adjustments
This commit is contained in:
parent
c59340150f
commit
e9ca309b6d
|
|
@ -5,8 +5,10 @@ from twisted.internet.base import ThreadedResolver
|
|||
|
||||
from scrapy.utils.datatypes import LocalCache
|
||||
|
||||
# TODO: cache misses
|
||||
# TODO: make cache size a setting
|
||||
|
||||
dnscache = LocalCache(10000) # XXX: make size a setting?
|
||||
dnscache = LocalCache(10000)
|
||||
|
||||
def gethostbyname(hostname):
|
||||
if hostname not in dnscache:
|
||||
|
|
|
|||
Loading…
Reference in New Issue