From b4a89461f574647b7b0656c7b37107c767ad5a0c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 3 Mar 2023 22:38:40 +0100 Subject: feat(tvix/store): use Memory*Service instead of temporary sled Change-Id: I65d2030aa643b6937dd92baa85db033bdce38b02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8208 Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/store/src/tests/utils.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tvix/store/src/tests') 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() } -- cgit 1.4.1