Skip to content

Commit d481d69

Browse files
committed
minor
1 parent 7a6f3d1 commit d481d69

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

crates/iceberg/src/transaction/action/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ use crate::{Result, TableUpdate};
2121
pub type PendingAction = Box<dyn TransactionAction>;
2222

2323
pub(crate) trait TransactionAction: Sync {
24-
/// Commit the changes and apply the changes to the transaction, return the updated transaction
24+
/// Commit the changes and apply the changes to the transaction,
25+
/// return the transaction with the updated current_table
2526
fn commit(self, tx: Transaction) -> Result<Transaction>;
2627
}
2728

crates/iceberg/src/transaction/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use crate::TableUpdate::UpgradeFormatVersion;
3333
use crate::error::Result;
3434
use crate::spec::FormatVersion;
3535
use crate::table::Table;
36-
use crate::transaction::action::{SetLocation, TransactionAction, PendingAction};
36+
use crate::transaction::action::{PendingAction, SetLocation, TransactionAction};
3737
use crate::transaction::append::FastAppendAction;
3838
use crate::transaction::sort_order::ReplaceSortOrderAction;
3939
use crate::{Catalog, Error, ErrorKind, TableCommit, TableRequirement, TableUpdate};
@@ -64,7 +64,7 @@ impl<'a> Transaction<'a> {
6464
for action in &old_tx.actions {
6565
new_tx = action.commit(new_tx)?
6666
}
67-
67+
6868
Ok(new_tx)
6969
}
7070

@@ -223,7 +223,7 @@ impl<'a> Transaction<'a> {
223223
{
224224
// refresh table
225225
let new_tx = Transaction::refresh(self, refreshed)?;
226-
return new_tx.commit(catalog).await
226+
return new_tx.commit(catalog).await;
227227
// TODO instead of refreshing directly, retry on this error
228228
// return Err(Error::new(
229229
// ErrorKind::DataInvalid,

0 commit comments

Comments
 (0)