From 923a5737e61da020e6d7672c3aebc00db9f44850 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 12 Dec 2023 21:25:50 +0200 Subject: refactor(tvix/castore): drop is_closed() from impl DirectoryPutter This is only used in the gRPC version (GRPCPutter), during the test automation. So define it as a method there, behind #[cfg(test)], and remove from the trait. Change-Id: Idf170884e3a10be0e96c75d946d9c431171e5e88 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10340 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: raitobezarius --- tvix/castore/src/directoryservice/mod.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tvix/castore/src/directoryservice/mod.rs') diff --git a/tvix/castore/src/directoryservice/mod.rs b/tvix/castore/src/directoryservice/mod.rs index 508c9a0be320..d6350d48c09e 100644 --- a/tvix/castore/src/directoryservice/mod.rs +++ b/tvix/castore/src/directoryservice/mod.rs @@ -73,8 +73,4 @@ pub trait DirectoryPutter: Send { /// If there's been any invalid Directory message uploaded, and error *must* /// be returned. async fn close(&mut self) -> Result; - - /// Return whether the stream is closed or not. - /// Used from some [DirectoryService] implementations only. - fn is_closed(&self) -> bool; } -- cgit 1.4.1