diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-12T19·25+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-12-16T23·07+0000 |
commit | 923a5737e61da020e6d7672c3aebc00db9f44850 (patch) | |
tree | 9396103f55434b3819f032e28db1c53752a16497 /tvix/castore/src/directoryservice/mod.rs | |
parent | 36cc7b7088190d6fb53cb5ddddc31e6b56c25450 (diff) |
refactor(tvix/castore): drop is_closed() from impl DirectoryPutter r/7227
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 <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/castore/src/directoryservice/mod.rs')
-rw-r--r-- | tvix/castore/src/directoryservice/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
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<B3Digest, Error>; - - /// Return whether the stream is closed or not. - /// Used from some [DirectoryService] implementations only. - fn is_closed(&self) -> bool; } |