Skip to content

Commit 0aaff1f

Browse files
committed
async_file_cache: use insert_with_key
1 parent c238a19 commit 0aaff1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async_file_cache/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<State: CacheState> FileCache<State> {
138138
} else {
139139
debug!("generating {:?}", path);
140140
let (tx, rx) = tokio::sync::watch::channel(());
141-
entry.insert_clone(rx);
141+
entry.insert_with_key(key.clone(), rx);
142142

143143
let mut part_path = path.clone();
144144
part_path.as_mut_os_string().push(OsString::from(".part"));

0 commit comments

Comments
 (0)