diff options
author | Florian Klink <flokli@flokli.de> | 2023-11-15T21·30+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-11-15T22·04+0000 |
commit | 4e5165d0a14c769914710a77bf8bf9c669ca0c34 (patch) | |
tree | 126cfce8c5e877cc8b757ab395642bb352ebeff9 /tvix/castore/src/utils.rs | |
parent | 30e0c320666f8ecaf37f6d966e45c40f988cce78 (diff) |
refactor(tvix/castore/utils): drop unused DuplexStreamWrapper r/7023
This wasn't used at all, let's remove it. Change-Id: I426e3d93c32ebe65247ae5cf8d05b5bf686be2d6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10044 Tested-by: BuildkiteCI Reviewed-by: edef <edef@edef.eu>
Diffstat (limited to 'tvix/castore/src/utils.rs')
-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)] |