feat(tvix): Implement EnsurePath RPC handler
Missed this one Fixes: b/62 Change-Id: I6f3bbcd3e2a7db5786283761b57466da33a497f7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1936 Reviewed-by: kanepyork <rikingcoding@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
e2530ceec0
commit
8f4d89e429
1 changed files with 13 additions and 0 deletions
|
@ -336,6 +336,19 @@ class WorkerServiceImpl final : public WorkerService::Service {
|
|||
__FUNCTION__);
|
||||
}
|
||||
|
||||
Status EnsurePath(grpc::ServerContext* context,
|
||||
const nix::proto::StorePath* request,
|
||||
google::protobuf::Empty*) override {
|
||||
auto path = request->path();
|
||||
ASSERT_INPUT_STORE_PATH(path);
|
||||
return HandleExceptions(
|
||||
[&]() -> Status {
|
||||
store_->ensurePath(path);
|
||||
return Status::OK;
|
||||
},
|
||||
__FUNCTION__);
|
||||
}
|
||||
|
||||
Status AddTempRoot(grpc::ServerContext*, const nix::proto::StorePath* request,
|
||||
google::protobuf::Empty*) override {
|
||||
auto path = request->path();
|
||||
|
|
Loading…
Reference in a new issue