diff options
author | Florian Klink <flokli@flokli.de> | 2022-12-29T20·39+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-01-12T10·11+0000 |
commit | 43f6aec384978da8ba554f14ba89959051b47d94 (patch) | |
tree | 2359f79ec564a748b6d3bcd7b9daf83db3af4aa1 /tvix/store/src/dummy_path_info_service.rs | |
parent | cfa42fd19aa58ee10d3b1660f4f1bb7b2efdfccc (diff) |
feat(tvix/store): implement PathInfoService with sled r/5649
This uses [sled](https://github.com/spacejam/sled) to store PathInfo objects. Change-Id: I12e8032e5562af8f884efa23a78049fd1108fdbc Reviewed-on: https://cl.tvl.fyi/c/depot/+/7726 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/dummy_path_info_service.rs')
-rw-r--r-- | tvix/store/src/dummy_path_info_service.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tvix/store/src/dummy_path_info_service.rs b/tvix/store/src/dummy_path_info_service.rs deleted file mode 100644 index 93359377f3dc..000000000000 --- a/tvix/store/src/dummy_path_info_service.rs +++ /dev/null @@ -1,35 +0,0 @@ -use crate::proto::path_info_service_server::PathInfoService; -use crate::proto::CalculateNarResponse; -use crate::proto::GetPathInfoRequest; -use crate::proto::Node; -use crate::proto::PathInfo; -use tonic::{Request, Response, Result, Status}; -use tracing::{instrument, warn}; - -pub struct DummyPathInfoService {} - -const NOT_IMPLEMENTED_MSG: &str = "not implemented"; - -#[tonic::async_trait] -impl PathInfoService for DummyPathInfoService { - #[instrument(skip(self))] - async fn get(&self, _request: Request<GetPathInfoRequest>) -> Result<Response<PathInfo>> { - warn!(NOT_IMPLEMENTED_MSG); - Err(Status::unimplemented(NOT_IMPLEMENTED_MSG)) - } - - #[instrument(skip(self))] - async fn put(&self, _request: Request<PathInfo>) -> Result<Response<PathInfo>> { - warn!(NOT_IMPLEMENTED_MSG); - Err(Status::unimplemented(NOT_IMPLEMENTED_MSG)) - } - - #[instrument(skip(self))] - async fn calculate_nar( - &self, - _request: Request<Node>, - ) -> Result<Response<CalculateNarResponse>> { - warn!(NOT_IMPLEMENTED_MSG); - Err(Status::unimplemented(NOT_IMPLEMENTED_MSG)) - } -} |