From b919f297528b74d9eab95fe93aa87541d7dffc53 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 25 Mar 2023 22:17:23 +0100 Subject: feat(tvix/store/pathinfosvc): add gRPC client Change-Id: Ie8e205c691bd11db99fcf097357c1e49161c6e19 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8349 Autosubmit: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/store/src/errors.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tvix/store/src/errors.rs') diff --git a/tvix/store/src/errors.rs b/tvix/store/src/errors.rs index 36a4320cb3e6..3b23f972b045 100644 --- a/tvix/store/src/errors.rs +++ b/tvix/store/src/errors.rs @@ -1,5 +1,6 @@ use std::sync::PoisonError; use thiserror::Error; +use tokio::task::JoinError; use tonic::Status; /// Errors related to communication with the store. @@ -18,6 +19,12 @@ impl From> for Error { } } +impl From for Error { + fn from(value: JoinError) -> Self { + Error::StorageError(value.to_string()) + } +} + impl From for Status { fn from(value: Error) -> Self { match value { -- cgit 1.4.1