Skip to content

Commit e4ca871

Browse files
authored
refine: make commit more general (#1048)
## Which issue does this PR close? - Closes ## What changes are included in this PR? change the input param type of commit to make it more general. I think the performance impact for this is minor. ## Are these changes tested? Co-authored-by: ZENOTME <[email protected]>
1 parent 82da826 commit e4ca871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/iceberg/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl<'a> Transaction<'a> {
163163
}
164164

165165
/// Commit transaction.
166-
pub async fn commit(self, catalog: &impl Catalog) -> Result<Table> {
166+
pub async fn commit(self, catalog: &dyn Catalog) -> Result<Table> {
167167
let table_commit = TableCommit::builder()
168168
.ident(self.table.identifier().clone())
169169
.updates(self.updates)

0 commit comments

Comments
 (0)