Skip to content

Commit 158098b

Browse files
committed
minor
1 parent 7a04d82 commit 158098b

File tree

1 file changed

+2
-4
lines changed
  • crates/iceberg/src/transaction

1 file changed

+2
-4
lines changed

crates/iceberg/src/transaction/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ impl Transaction {
173173
}
174174

175175
async fn do_commit(&mut self, catalog: &dyn Catalog) -> Result<Table> {
176-
let base_table_identifier = self.base_table.identifier().to_owned();
177-
178-
let refreshed = catalog.load_table(&base_table_identifier.clone()).await?;
176+
let refreshed = catalog.load_table(self.base_table.identifier()).await?;
179177

180178
if self.base_table.metadata() != refreshed.metadata()
181179
|| self.base_table.metadata_location() != refreshed.metadata_location()
@@ -196,7 +194,7 @@ impl Transaction {
196194
}
197195

198196
let table_commit = TableCommit::builder()
199-
.ident(base_table_identifier)
197+
.ident(self.base_table.identifier().clone())
200198
.updates(self.updates.clone())
201199
.requirements(self.requirements.clone())
202200
.build();

0 commit comments

Comments
 (0)