From 60751b70ebcfcac031ba77234338c460cd3416e6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 27 Mar 2023 18:12:07 +0200 Subject: docs(tvix/store/grpc_directorysvc_wrapper): add TODO The logic validating connectivity of Directory nodes should be moved to SimplePutter, and this use whatever DirectoryPutter the store comes with. Change-Id: Id68a86a96cc49ff73920017839788859ea9c5161 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8358 Autosubmit: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/store/src/proto/grpc_directoryservice_wrapper.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/store') diff --git a/tvix/store/src/proto/grpc_directoryservice_wrapper.rs b/tvix/store/src/proto/grpc_directoryservice_wrapper.rs index 06df07a108fb..73036229208c 100644 --- a/tvix/store/src/proto/grpc_directoryservice_wrapper.rs +++ b/tvix/store/src/proto/grpc_directoryservice_wrapper.rs @@ -91,6 +91,9 @@ impl request: Request>, ) -> Result, Status> { let mut req_inner = request.into_inner(); + // TODO: let this use DirectoryPutter to the store it's connected to, + // and move the validation logic into [SimplePutter]. + // This keeps track of the seen directory keys, and their size. // This is used to validate the size field of a reference to a previously sent directory. // We don't need to keep the contents around, they're stored in the DB. -- cgit 1.4.1