refactor(tvix/castore/blobsvc/grpc/wrapper): don't require Arc<_>
Change-Id: I9655f5588c7dc98427de6af47d74b4ab7ce22071 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10516 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
parent
96aa220dcf
commit
1b62f82b10
4 changed files with 14 additions and 15 deletions
|
|
@ -1,8 +1,8 @@
|
|||
//! A crate containing constructors to provide instances of a BlobService and
|
||||
//! DirectoryService. Only used for testing purposes, but across crates.
|
||||
//! Should be removed once we have a better concept of a "Service registry".
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use tonic::transport::{Channel, Endpoint, Server, Uri};
|
||||
|
||||
use crate::{
|
||||
|
|
@ -67,7 +67,7 @@ pub(crate) async fn gen_blobsvc_grpc_client() -> BlobServiceClient<Channel> {
|
|||
tokio::spawn(async {
|
||||
// spin up a new DirectoryService
|
||||
let mut server = Server::builder();
|
||||
let router = server.add_service(BlobServiceServer::new(GRPCBlobServiceWrapper::from(
|
||||
let router = server.add_service(BlobServiceServer::new(GRPCBlobServiceWrapper::new(
|
||||
gen_blob_service(),
|
||||
)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue