From c3dc4ff938f34ad95fa0480757d64d7bac7e00a0 Mon Sep 17 00:00:00 2001 From: Gaius Date: Wed, 17 Jul 2024 17:21:46 +0800 Subject: [PATCH] feat: rename create_persistent_cache_task to create_persistent in cache_task (#604) Signed-off-by: Gaius --- dragonfly-client/src/grpc/dfdaemon_download.rs | 2 +- dragonfly-client/src/resource/cache_task.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dragonfly-client/src/grpc/dfdaemon_download.rs b/dragonfly-client/src/grpc/dfdaemon_download.rs index aed58806..081018f0 100644 --- a/dragonfly-client/src/grpc/dfdaemon_download.rs +++ b/dragonfly-client/src/grpc/dfdaemon_download.rs @@ -650,7 +650,7 @@ impl DfdaemonDownload for DfdaemonDownloadServerHandler { // Create the persistent cache task to local storage. let task = match self .cache_task - .create_persistent_cache_task( + .create_persistent( task_id.as_str(), host_id.as_str(), peer_id.as_str(), diff --git a/dragonfly-client/src/resource/cache_task.rs b/dragonfly-client/src/resource/cache_task.rs index 8bfb3fe4..9e171cb7 100644 --- a/dragonfly-client/src/resource/cache_task.rs +++ b/dragonfly-client/src/resource/cache_task.rs @@ -61,8 +61,8 @@ impl CacheTask { } } - // create_persistent_cache_task creates a persistent cache task from local. - pub async fn create_persistent_cache_task( + // create_persistent creates a persistent cache task from local. + pub async fn create_persistent( &self, task_id: &str, host_id: &str,