diff options
author | Florian Klink <flokli@flokli.de> | 2023-03-10T12·14+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-03-10T12·23+0000 |
commit | e1783c45a4f9fc8d2b46d9b647c1fe49d883ad86 (patch) | |
tree | adfdf70a579df8b86df859553f75ab1096a0a1c3 | |
parent | d2b353e516ba7bd58ab86e142b1a6fc01c3090b2 (diff) |
refactor(tvix/store/blobwriter): don't clone r/5945
This already is a &CS, so we don't need to clone(). Change-Id: I5397a5948ae7fe4781f18df760a79047f83dca01 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8243 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r-- | tvix/store/src/blobwriter.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tvix/store/src/blobwriter.rs b/tvix/store/src/blobwriter.rs index 9b4dcb8f21ef..50471a97c3af 100644 --- a/tvix/store/src/blobwriter.rs +++ b/tvix/store/src/blobwriter.rs @@ -144,8 +144,7 @@ impl<CS: ChunkService + std::marker::Sync> std::io::Write for BlobWriter<'_, CS> let blob_meta_chunks: Vec<Result<proto::blob_meta::ChunkMeta, Error>> = chunk_slices .into_par_iter() .map(|chunk_slice| { - let chunk_service = self.chunk_service.clone(); - let chunk_digest = upload_chunk(chunk_service.clone(), chunk_slice.to_vec())?; + let chunk_digest = upload_chunk(self.chunk_service, chunk_slice.to_vec())?; Ok(proto::blob_meta::ChunkMeta { digest: chunk_digest, |