diff options
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/castore/src/utils.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tvix/castore/src/utils.rs b/tvix/castore/src/utils.rs index ad0051ff9732..1b0d4c674218 100644 --- a/tvix/castore/src/utils.rs +++ b/tvix/castore/src/utils.rs @@ -1,11 +1,8 @@ //! A crate containing constructors to provide instances of a BlobService and -//! DirectoryService. -//! Only used for testing purposes, but across crates. +//! DirectoryService. Only used for testing purposes, but across crates. //! Should be removed once we have a better concept of a "Service registry". -use pin_project_lite::pin_project; use std::sync::Arc; -use tokio::io::DuplexStream; use tonic::transport::{Channel, Endpoint, Server, Uri}; use crate::{ @@ -27,15 +24,6 @@ pub fn gen_directory_service() -> Arc<dyn DirectoryService> { Arc::new(MemoryDirectoryService::default()) } -pin_project! { - /// A wrapper around [DuplexStreamStream], - /// implementing [AsyncRead] and [Connected]. - pub struct DuplexStreamWrapper { - #[pin] - inner: DuplexStream - } -} - /// This will spawn the a gRPC server with a DirectoryService client, connect a /// gRPC DirectoryService client and return it. #[allow(dead_code)] |