refactor(tvix/store/blobsvc): move from Vec<u8> to B3Digest

Change-Id: I809bab75221f81b6023cfe75c2fe9e589c1e9192
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8605
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-05-22 14:42:57 +03:00 committed by clbot
parent b8ff08b1b0
commit 066179651c
9 changed files with 79 additions and 95 deletions

View file

@ -61,9 +61,7 @@ fn single_file() {
);
// ensure the blob has been uploaded
assert!(blob_service
.has(&HELLOWORLD_BLOB_DIGEST.to_vec().try_into().unwrap())
.unwrap());
assert!(blob_service.has(&HELLOWORLD_BLOB_DIGEST).unwrap());
}
#[test]
@ -111,7 +109,5 @@ fn complicated() {
.is_some());
// ensure EMPTY_BLOB_CONTENTS has been uploaded
assert!(blob_service
.has(&EMPTY_BLOB_DIGEST.to_vec().try_into().unwrap())
.unwrap());
assert!(blob_service.has(&EMPTY_BLOB_DIGEST).unwrap());
}