refactor(tvix/store/blobwriter): don't clone

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>
This commit is contained in:
Florian Klink 2023-03-10 13:14:00 +01:00 committed by clbot
parent d2b353e516
commit e1783c45a4

View file

@ -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,