diff options
author | Florian Klink <flokli@flokli.de> | 2023-03-03T21·38+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-03-10T10·58+0000 |
commit | b4a89461f574647b7b0656c7b37107c767ad5a0c (patch) | |
tree | 50bf8ee6aa41fa8450de4342e1f6b5c94fc04f63 /tvix/store | |
parent | a4f6c4181aa7f975b1c3aad8d3fb30021388e014 (diff) |
feat(tvix/store): use Memory*Service instead of temporary sled r/5935
Change-Id: I65d2030aa643b6937dd92baa85db033bdce38b02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8208 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store')
-rw-r--r-- | tvix/store/src/tests/utils.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tvix/store/src/tests/utils.rs b/tvix/store/src/tests/utils.rs index 9da9d2643b81..ac801b47aad2 100644 --- a/tvix/store/src/tests/utils.rs +++ b/tvix/store/src/tests/utils.rs @@ -1,22 +1,22 @@ use crate::{ - blobservice::{BlobService, SledBlobService}, - chunkservice::{ChunkService, SledChunkService}, - directoryservice::{DirectoryService, SledDirectoryService}, - pathinfoservice::{PathInfoService, SledPathInfoService}, + blobservice::{BlobService, MemoryBlobService}, + chunkservice::{ChunkService, MemoryChunkService}, + directoryservice::{DirectoryService, MemoryDirectoryService}, + pathinfoservice::{MemoryPathInfoService, PathInfoService}, }; pub fn gen_blob_service() -> impl BlobService + Send + Sync + Clone + 'static { - SledBlobService::new_temporary().unwrap() + MemoryBlobService::new() } pub fn gen_chunk_service() -> impl ChunkService + Clone { - SledChunkService::new_temporary().unwrap() + MemoryChunkService::new() } pub fn gen_directory_service() -> impl DirectoryService + Send + Sync + Clone + 'static { - SledDirectoryService::new_temporary().unwrap() + MemoryDirectoryService::new() } pub fn gen_pathinfo_service() -> impl PathInfoService { - SledPathInfoService::new_temporary().unwrap() + MemoryPathInfoService::new() } |