diff options
Diffstat (limited to 'tvix/store/src/dummy_path_info_service.rs')
-rw-r--r-- | tvix/store/src/dummy_path_info_service.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tvix/store/src/dummy_path_info_service.rs b/tvix/store/src/dummy_path_info_service.rs new file mode 100644 index 000000000000..3bc99ad334d9 --- /dev/null +++ b/tvix/store/src/dummy_path_info_service.rs @@ -0,0 +1,26 @@ +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}; + +pub struct DummyPathInfoService {} + +#[tonic::async_trait] +impl PathInfoService for DummyPathInfoService { + async fn get(&self, _request: Request<GetPathInfoRequest>) -> Result<Response<PathInfo>> { + Err(Status::unimplemented("not implemented")) + } + + async fn put(&self, _request: Request<PathInfo>) -> Result<Response<PathInfo>> { + Err(Status::unimplemented("not implemented")) + } + + async fn calculate_nar( + &self, + _request: Request<Node>, + ) -> Result<Response<CalculateNarResponse>> { + Err(Status::unimplemented("not implemented")) + } +} |