Skip to content

Commit e881811

Browse files
CTTYliurenjie1024
andauthored
Update crates/iceberg/src/transaction/action/mod.rs
Co-authored-by: Renjie Liu <liurenjie2008@gmail.com>
1 parent 2bfc500 commit e881811

File tree

1 file changed

+3
-2
lines changed
  • crates/iceberg/src/transaction/action

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ use crate::{Error, ErrorKind, Result, TableRequirement, TableUpdate};
2121

2222
pub type BoxedTransactionAction = Arc<dyn TransactionAction>;
2323

24-
pub(crate) trait TransactionAction: Sync {
24+
#[async_trait]
25+
pub(crate) trait TransactionAction: Sync + Send {
2526
/// Commit the changes and apply the changes to the transaction,
2627
/// return the transaction with the updated current_table
27-
fn commit(self: Box<Self>) -> Result<TransactionActionCommit>;
28+
fn commit(self: Arc<Self>, tx: &Transaction) -> Result<TransactionActionCommit>;
2829
}
2930

3031
pub struct TransactionActionCommit {

0 commit comments

Comments
 (0)