From 459a564ff1ea9d004b06d8000bc8b3b532ce347b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 1 Feb 2024 13:29:15 +0200 Subject: 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 Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/castore/src/blobservice/combinator.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/castore/src/blobservice/combinator.rs b/tvix/castore/src/blobservice/combinator.rs index caa04fb35d96..d75cad62a629 100644 --- a/tvix/castore/src/blobservice/combinator.rs +++ b/tvix/castore/src/blobservice/combinator.rs @@ -99,10 +99,11 @@ fn make_chunked_reader( // 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 where - BS: BlobService + Clone + Send + Sync + 'static, + BS: BlobService + Clone + 'static, { // TODO: offset, verified streaming -- cgit 1.4.1