Skip to content

Commit eeb619f

Browse files
committed
f Use .trash ext
1 parent 65a5559 commit eeb619f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl KVStore for FilesystemStore {
247247
// However, all this is partially based on assumptions and local experiments, as
248248
// Windows API is horribly underdocumented.
249249
let mut trash_file_path = dest_file_path.clone();
250-
let trash_file_ext = format!("{}.trash.tmp",
250+
let trash_file_ext = format!("{}.trash",
251251
self.tmp_file_counter.fetch_add(1, Ordering::AcqRel));
252252
trash_file_path.set_extension(trash_file_ext);
253253

@@ -303,7 +303,7 @@ impl KVStore for FilesystemStore {
303303
#[cfg(target_os = "windows")]
304304
{
305305
// Clean up any trash files lying around.
306-
if ext == "trash.tmp" {
306+
if ext == "trash" {
307307
fs::remove_file(p).ok();
308308
continue;
309309
}

0 commit comments

Comments
 (0)