Skip to content

Commit c3dc4ff

Browse files
authored
feat: rename create_persistent_cache_task to create_persistent in cache_task (dragonflyoss#604)
Signed-off-by: Gaius <[email protected]>
1 parent 5fc8ba8 commit c3dc4ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dragonfly-client/src/grpc/dfdaemon_download.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ impl DfdaemonDownload for DfdaemonDownloadServerHandler {
650650
// Create the persistent cache task to local storage.
651651
let task = match self
652652
.cache_task
653-
.create_persistent_cache_task(
653+
.create_persistent(
654654
task_id.as_str(),
655655
host_id.as_str(),
656656
peer_id.as_str(),

dragonfly-client/src/resource/cache_task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ impl CacheTask {
6161
}
6262
}
6363

64-
// create_persistent_cache_task creates a persistent cache task from local.
65-
pub async fn create_persistent_cache_task(
64+
// create_persistent creates a persistent cache task from local.
65+
pub async fn create_persistent(
6666
&self,
6767
task_id: &str,
6868
host_id: &str,

0 commit comments

Comments
 (0)