feat: rename create_persistent_cache_task to create_persistent in cache_task (#604)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2024-07-17 17:21:46 +08:00 committed by GitHub
parent 5fc8ba8122
commit c3dc4ff938
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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(),

View File

@ -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,