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,