From 7f625e2fc104a9403c0a0eb2c6abe975948dada3 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 20 Jun 2024 20:57:32 +0300 Subject: refactor(tvix/*store): remove some trait bounds We don't need to require these things for these impl blocks yet. Change-Id: I3cec958a637a4f900bdd38abd00e9133bf75ce46 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11865 Autosubmit: flokli Reviewed-by: Simon Hauser Tested-by: BuildkiteCI --- tvix/castore/src/blobservice/grpc.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tvix/castore/src/blobservice/grpc.rs') diff --git a/tvix/castore/src/blobservice/grpc.rs b/tvix/castore/src/blobservice/grpc.rs index 9b54d81de29c..834c0c7bf57a 100644 --- a/tvix/castore/src/blobservice/grpc.rs +++ b/tvix/castore/src/blobservice/grpc.rs @@ -22,19 +22,13 @@ use tracing::{instrument, Instrument as _}; /// Connects to a (remote) tvix-store BlobService over gRPC. #[derive(Clone)] -pub struct GRPCBlobService -where - T: Clone, -{ +pub struct GRPCBlobService { /// The internal reference to a gRPC client. /// Cloning it is cheap, and it internally handles concurrent requests. grpc_client: proto::blob_service_client::BlobServiceClient, } -impl GRPCBlobService -where - T: tonic::client::GrpcService + Clone, -{ +impl GRPCBlobService { /// construct a [GRPCBlobService] from a [proto::blob_service_client::BlobServiceClient]. /// panics if called outside the context of a tokio runtime. pub fn from_client(grpc_client: proto::blob_service_client::BlobServiceClient) -> Self { -- cgit 1.4.1