Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytak committed Jan 30, 2025
1 parent eec2785 commit 7c4a8a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/src/shard_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::errors::Result;
pub async fn create_shard_manager(
shard_storage_config: &StorageConfig,
download_only_mode: bool,
) -> Result<Arc<ShardFileManager>> {
) -> Result<(Arc<ShardFileManager>, Arc<ShardFileManager>)> {
let shard_session_directory = shard_storage_config
.staging_directory
.as_ref()
Expand All @@ -30,15 +30,15 @@ pub async fn create_shard_manager(
.build()
.await?;

let session_shard_manager = ShardFileManager::builder(shard_cache_directory)
let session_shard_manager = ShardFileManager::builder(shard_session_directory)
.with_chunk_dedup(!download_only_mode)
.with_expired_shard_cleanup(false)
.with_caching(false)
.with_parent_sfm(cache_shard_manager.clone())
.build()
.await?;

Ok(session_shard_manager)
Ok((session_shard_manager, cache_shard_manager))
}

pub async fn create_shard_client(
Expand Down

0 comments on commit 7c4a8a5

Please sign in to comment.