about summary refs log tree commit diff
path: root/tvix/Cargo.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-13T16·57+0300
committerclbot <clbot@tvl.fyi>2024-04-15T14·47+0000
commit6ebaa7b88a25636ee90f21b3a42a3674c98d00ef (patch)
tree95d927faabf4b9d2111526e8ae55e6bb1e54bd77 /tvix/Cargo.nix
parentc088123d4e8c0b49cf0af568426d6d146a07f44c (diff)
refactor(tvix/castore/import): restructure directory uploader a bit r/7927
Have a Option<Box<dyn DirectoryPutter>>, which is lazily initialized
whenever we first want to upload a directory.

Have the loop explicitly break when it encounters the root_node, and
deal with the flushing after the loop.

Deal with the FUTUREWORK (assertion for root directory digest matching
what the DirectoryPutter returns).

Change-Id: Iefc4904d8b8387e868fb752d40e3e4e4218c7407
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11417
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/Cargo.nix')
0 files changed, 0 insertions, 0 deletions