minor comments adjustments

This commit is contained in:
Pablo Hoffman 2011-07-27 03:48:38 -03:00
parent c59340150f
commit e9ca309b6d
1 changed files with 3 additions and 1 deletions

View File

@ -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: