From c947a73b8e9e11d38c307bb73d712094614f2bf1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 12 Jun 2023 23:54:25 +0300 Subject: chore(tvix/store/pathinfosvc): remove GRPCPathInfoService::new There's very little reason to instantiate a GRPCPathInfoService in a context where we are not already in a tokio context. Change-Id: Ib81d649387717cb98de8a8039f92472f727b10c1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8755 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/store/src/pathinfoservice/grpc.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tvix/store/src/pathinfoservice/grpc.rs') diff --git a/tvix/store/src/pathinfoservice/grpc.rs b/tvix/store/src/pathinfoservice/grpc.rs index 871c3b5922..230d630cf4 100644 --- a/tvix/store/src/pathinfoservice/grpc.rs +++ b/tvix/store/src/pathinfoservice/grpc.rs @@ -14,18 +14,6 @@ pub struct GRPCPathInfoService { } impl GRPCPathInfoService { - /// Construct a new [GRPCPathInfoService], by passing a handle to the tokio - /// runtime, and a gRPC client. - pub fn new( - tokio_handle: tokio::runtime::Handle, - grpc_client: proto::path_info_service_client::PathInfoServiceClient, - ) -> Self { - Self { - tokio_handle, - grpc_client, - } - } - /// construct a [GRPCDirectoryService] from a [proto::path_info_service_client::PathInfoServiceClient]. /// panics if called outside the context of a tokio runtime. pub fn from_client( -- cgit 1.4.1