move blocking_file_io into Options
This commit is contained in:
parent
921c51e118
commit
d659763672
|
@ -215,9 +215,7 @@ async def main(db, filepaths, checks, opts: Options):
|
||||||
|
|
||||||
pooler = make_pooler(opts.ip_simul, finisher)
|
pooler = make_pooler(opts.ip_simul, finisher)
|
||||||
|
|
||||||
blocking_file_io = False # TODO: put in Options.
|
if opts.blocking_file_io:
|
||||||
|
|
||||||
if blocking_file_io:
|
|
||||||
from .ip_util import read_ips
|
from .ip_util import read_ips
|
||||||
|
|
||||||
seen = 0
|
seen = 0
|
||||||
|
|
|
@ -16,7 +16,8 @@ class Options:
|
||||||
impatient: bool = False # reduce retries and times for timeouts
|
impatient: bool = False # reduce retries and times for timeouts
|
||||||
early_stopping: bool = True # stop at the first invalid domain
|
early_stopping: bool = True # stop at the first invalid domain
|
||||||
dry: bool = True # don't write anything to database
|
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
|
@dataclass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user