mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 16:11:08 +00:00
explain the repeated save_capabilities calls
This commit is contained in:
parent
129c6ec11a
commit
9581eeebe5
@ -69,10 +69,13 @@ async def skiptest_generate(reactor, request, alice):
|
|||||||
)
|
)
|
||||||
iterresults = generate(reactor, request, alice, space)
|
iterresults = generate(reactor, request, alice, space)
|
||||||
|
|
||||||
# Update the output file with results as they become available.
|
|
||||||
results = []
|
results = []
|
||||||
async for result in iterresults:
|
async for result in iterresults:
|
||||||
|
# Accumulate the new result
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
# Then rewrite the whole output file with the new accumulator value.
|
||||||
|
# This means that if we fail partway through, we will still have
|
||||||
|
# recorded partial results -- instead of losing them all.
|
||||||
vectors.save_capabilities(results)
|
vectors.save_capabilities(results)
|
||||||
|
|
||||||
async def generate(
|
async def generate(
|
||||||
|
Loading…
Reference in New Issue
Block a user