refactor(tvix/store/composition): rename 'default' to 'root'
This becomes the root of the composition. `default` implies we can directly access anything else, which we cannot. `root` makes this more understandable, and it's all internal only anyways. Change-Id: I297511bc05a7c32c59510b9d192b40d1bd937b5f Reviewed-on: https://cl.tvl.fyi/c/depot/+/12746 Reviewed-by: yuka <yuka@yuka.dev> Tested-by: BuildkiteCI
This commit is contained in:
parent
8df919dcf0
commit
d505f03e00
9 changed files with 26 additions and 26 deletions
|
|
@ -128,12 +128,12 @@ mod tests {
|
|||
async fn test_from_addr_tokio(#[case] uri_str: &str, #[case] exp_succeed: bool) {
|
||||
let mut comp = Composition::new(®);
|
||||
comp.extend(vec![(
|
||||
"default".into(),
|
||||
"root".into(),
|
||||
DeserializeWithRegistry(Box::new(MemoryBlobServiceConfig {})
|
||||
as Box<dyn ServiceBuilder<Output = dyn BlobService>>),
|
||||
)]);
|
||||
comp.extend(vec![(
|
||||
"default".into(),
|
||||
"root".into(),
|
||||
DeserializeWithRegistry(Box::new(MemoryDirectoryServiceConfig {})
|
||||
as Box<dyn ServiceBuilder<Output = dyn DirectoryService>>),
|
||||
)]);
|
||||
|
|
|
|||
|
|
@ -296,13 +296,13 @@ impl TryFrom<Url> for NixHTTPPathInfoServiceConfig {
|
|||
.into_iter()
|
||||
.find(|(k, _)| k == "blob_service")
|
||||
.map(|(_, v)| v.to_string())
|
||||
.unwrap_or("default".to_string());
|
||||
.unwrap_or("root".to_string());
|
||||
let directory_service = url
|
||||
.query_pairs()
|
||||
.into_iter()
|
||||
.find(|(k, _)| k == "directory_service")
|
||||
.map(|(_, v)| v.to_string())
|
||||
.unwrap_or("default".to_string());
|
||||
.unwrap_or("root".to_string());
|
||||
|
||||
Ok(NixHTTPPathInfoServiceConfig {
|
||||
// Stringify the URL and remove the nix+ prefix.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue