Change-Id: I78a4cd86cb364b970e99393579808e773db5ceb2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8237 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
22 lines
688 B
Rust
22 lines
688 B
Rust
use crate::{
|
|
blobservice::{BlobService, MemoryBlobService},
|
|
chunkservice::{ChunkService, MemoryChunkService},
|
|
directoryservice::{DirectoryService, MemoryDirectoryService},
|
|
pathinfoservice::{MemoryPathInfoService, PathInfoService},
|
|
};
|
|
|
|
pub fn gen_blob_service() -> impl BlobService + Send + Sync + Clone + 'static {
|
|
MemoryBlobService::default()
|
|
}
|
|
|
|
pub fn gen_chunk_service() -> impl ChunkService + Clone {
|
|
MemoryChunkService::default()
|
|
}
|
|
|
|
pub fn gen_directory_service() -> impl DirectoryService + Send + Sync + Clone + 'static {
|
|
MemoryDirectoryService::default()
|
|
}
|
|
|
|
pub fn gen_pathinfo_service() -> impl PathInfoService {
|
|
MemoryPathInfoService::default()
|
|
}
|