refactor(tvix/castore/utils): drop unused DuplexStreamWrapper
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>
This commit is contained in:
parent
30e0c32066
commit
4e5165d0a1
1 changed files with 1 additions and 13 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue