about summary refs log tree commit diff
path: root/tvix/store/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-06-12T20·54+0300
committerclbot <clbot@tvl.fyi>2023-06-12T21·33+0000
commitc947a73b8e9e11d38c307bb73d712094614f2bf1 (patch)
treea09881b42a669258415f634156962416b071deee /tvix/store/src
parent011fbe221498fda8a5b23ce7ea0b3331f0d0cb64 (diff)
chore(tvix/store/pathinfosvc): remove GRPCPathInfoService::new r/6282
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 <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/src')
-rw-r--r--tvix/store/src/pathinfoservice/grpc.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/tvix/store/src/pathinfoservice/grpc.rs b/tvix/store/src/pathinfoservice/grpc.rs
index 871c3b592256..230d630cf476 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<Channel>,
-    ) -> Self {
-        Self {
-            tokio_handle,
-            grpc_client,
-        }
-    }
-
     /// construct a [GRPCDirectoryService] from a [proto::path_info_service_client::PathInfoServiceClient<Channel>].
     /// panics if called outside the context of a tokio runtime.
     pub fn from_client(