diff --git a/tvix/castore/src/composition.rs b/tvix/castore/src/composition.rs index 53e2fe159..53673cf46 100644 --- a/tvix/castore/src/composition.rs +++ b/tvix/castore/src/composition.rs @@ -274,6 +274,9 @@ pub fn add_default_services(reg: &mut Registry) { } pub struct CompositionContext<'a> { + // The stack used to detect recursive instantiations and prevent deadlocks + // The TypeId of the trait object is included to distinguish e.g. the + // BlobService "default" and the DirectoryService "default". stack: Vec<(TypeId, String)>, composition: Option<&'a Composition>, }