refactor(tvix/store): move construct_services helper here

This takes three URLs, and constructs Arc'ed
{Blob,Directory,PathInfo}Service, allowing to remove some of the
boilerplate.

Change-Id: I40e7c2b551442ef2acdc543dfc87ab97e7c742bb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10484
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
Florian Klink 2023-12-31 16:33:26 +02:00 committed by clbot
parent 41935fab70
commit f6d1a56c8c
4 changed files with 68 additions and 94 deletions

View file

@ -1,6 +1,7 @@
pub mod nar;
pub mod pathinfoservice;
pub mod proto;
pub mod utils;
#[cfg(test)]
mod tests;