refactor(tvix/castore/blobsvc/combinator): compact trait bounds

BlobService already implies Send and Sync, we don't need to explicitly
list it here.

Change-Id: I58a4c5912be61a60acd961565979aa01d94ee0f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10727
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2024-02-01 13:29:15 +02:00 committed by clbot
parent a73adfe7e4
commit 459a564ff1

View file

@ -99,10 +99,11 @@ fn make_chunked_reader<BS>(
// as it'd add a lifetime to BlobReader in general, which will get
// problematic in TvixStoreFs, which is using async move closures and cloning.
blob_service: BS,
// A list of b3 digests for individual chunks, and their sizes.
chunks: Vec<(B3Digest, u64)>,
) -> Box<dyn BlobReader>
where
BS: BlobService + Clone + Send + Sync + 'static,
BS: BlobService + Clone + 'static,
{
// TODO: offset, verified streaming