Skip to content

Commit 45a7b08

Browse files
committed
deploy: d81c7a6
1 parent 5916c0d commit 45a7b08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pr/149/docs/src/iroh_blobs/store/fs.rs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3570,7 +3570,7 @@
35703570
),
35713571
DataLocation::External(paths, size) => (
35723572
MemOrFile::File((
3573-
paths.iter().cloned().next().ok_or_else(|| {
3573+
paths.first().cloned().ok_or_else(|| {
35743574
io::Error::new(io::ErrorKind::NotFound, <span class="string">"no external data path"</span>)
35753575
})<span class="question-mark">?</span>,
35763576
size,
@@ -3624,15 +3624,15 @@
36243624
<span class="kw">if </span>cause.raw_os_error() == <span class="prelude-val">Some</span>(ERR_CROSS) {
36253625
reflink_or_copy_with_progress(<span class="kw-2">&amp;</span>source_path, <span class="kw-2">&amp;</span>target, size, tx)
36263626
.<span class="kw">await</span><span class="question-mark">?</span>;
3627-
<span class="comment">// todo: delete file at source_path
3628-
</span>} <span class="kw">else </span>{
3627+
} <span class="kw">else </span>{
36293628
<span class="kw">return </span><span class="prelude-val">Err</span>(cause.into());
36303629
}
36313630
}
36323631
}
36333632
external.push(target);
36343633
};
3635-
ctx.set(EntryState::Complete {
3634+
<span class="comment">// setting the new entry state will also take care of deleting the owned data file!
3635+
</span>ctx.set(EntryState::Complete {
36363636
data_location: DataLocation::External(external, size),
36373637
outboard_location,
36383638
})

0 commit comments

Comments
 (0)