From 9267c1edf582f14723c6c4e617ca235460ef234f Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 13 Mar 2025 16:46:47 +0100 Subject: [PATCH] refactor(tvix/castore/directory): allow DirectoryPutter to have refs We can require DirectoryPutters to not outlive the DirectoryServices they originated from. This allows borrowing some data from there. Change-Id: I82a4c17b06b3b0ae5cf84d35561f1aae049a2cdc Reviewed-on: https://cl.tvl.fyi/c/depot/+/13259 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: edef --- tvix/castore/src/directoryservice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/castore/src/directoryservice/mod.rs b/tvix/castore/src/directoryservice/mod.rs index b3cb0f4fd..a09a2d556 100644 --- a/tvix/castore/src/directoryservice/mod.rs +++ b/tvix/castore/src/directoryservice/mod.rs @@ -79,7 +79,7 @@ pub trait DirectoryService: Send + Sync { /// Allows persisting a closure of [Directory], which is a graph of /// connected Directory messages. - fn put_multiple_start(&self) -> Box; + fn put_multiple_start(&self) -> Box; } /// Provides a handle to put a closure of connected [Directory] elements.