diff options
Diffstat (limited to 'tvix/castore/src/directoryservice')
-rw-r--r-- | tvix/castore/src/directoryservice/grpc.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tvix/castore/src/directoryservice/grpc.rs b/tvix/castore/src/directoryservice/grpc.rs index 7ef9f84b0a16..4ee2d28e97c0 100644 --- a/tvix/castore/src/directoryservice/grpc.rs +++ b/tvix/castore/src/directoryservice/grpc.rs @@ -139,9 +139,11 @@ impl DirectoryService for GRPCDirectoryService { } async fn put(&self, directory: crate::proto::Directory) -> Result<B3Digest, crate::Error> { - let mut grpc_client = self.grpc_client.clone(); - - let resp = grpc_client.put(tokio_stream::iter(vec![directory])).await; + let resp = self + .grpc_client + .clone() + .put(tokio_stream::once(directory)) + .await; match resp { Ok(put_directory_resp) => Ok(put_directory_resp |