move blocking_file_io into Options

This commit is contained in:
Connor Olding 2020-09-04 15:01:58 +02:00
parent 921c51e118
commit d659763672
2 changed files with 3 additions and 4 deletions

View file

@ -215,9 +215,7 @@ async def main(db, filepaths, checks, opts: Options):
pooler = make_pooler(opts.ip_simul, finisher)
blocking_file_io = False # TODO: put in Options.
if blocking_file_io:
if opts.blocking_file_io:
from .ip_util import read_ips
seen = 0

View file

@ -16,7 +16,8 @@ class Options:
impatient: bool = False # reduce retries and times for timeouts
early_stopping: bool = True # stop at the first invalid domain
dry: bool = True # don't write anything to database
progress: bool = False
progress: bool = False # periodically print progress to stderr
blocking_file_io: bool = False # halt execution until inputs arrive
@dataclass