Skip to content

Commit 9e9fe26

Browse files
authored
fix(iceberg): fix compile issue (#55)
* fix(iceberg): fix compile issue * fmt
1 parent b1619c5 commit 9e9fe26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/iceberg/src/transaction/utils.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use std::sync::Arc;
2020

2121
use futures::stream::{self, StreamExt};
2222
use futures::TryStreamExt;
23+
use itertools::Itertools;
2324

2425
use crate::error::Result;
2526
use crate::io::FileIO;
@@ -99,8 +100,12 @@ impl ReachableFileCleanupStrategy {
99100
}
100101
}
101102

102-
stream::iter(manifest_lists_to_delete)
103+
let manifest_lists_to_delete = manifest_lists_to_delete
104+
.iter()
103105
.map(|path| self.file_io.delete(path))
106+
.collect_vec();
107+
108+
stream::iter(manifest_lists_to_delete)
104109
.buffer_unordered(DEFAULT_DELETE_CONCURRENCY_LIMIT)
105110
.try_collect::<Vec<_>>()
106111
.await?;

0 commit comments

Comments
 (0)