chore(tvix/store): move NAR rendering logic into Renderer struct

This moves the logic rendering NARs to a struct using the
previously introduced, more granular BlobService, ChunkService and
DirectoryService.

Instead of passing them around to the helper functions, they're kept as
members of a struct.

Remove the async invocations in the nar_renderer tests, there's nothing
async in here.

Change-Id: Ic6d24aaad68a1fda46ce29f2cdb5f7b87f481d5c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8095
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-02-13 16:44:26 +01:00 committed by flokli
parent cdb9458310
commit df3223fd68
5 changed files with 277 additions and 183 deletions

View file

@ -1,3 +1,3 @@
mod directory_service;
mod nar;
mod nar_renderer;
mod path_info_service;