Skip to content

Commit

Permalink
chore: Set max_retries in CommitProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
helanto committed Aug 25, 2024
1 parent 46b38d2 commit cd47e2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/core/src/operations/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@ impl CommitProperties {
self
}

/// Specify maximum number of times to retry the transaction before failing to commit
pub fn with_max_retries(
mut self,
max_retries: usize,
) -> Self {
self.max_retries = max_retries;
self
}

/// Specify if it should create a checkpoint when the commit interval condition is met
pub fn with_create_checkpoint(mut self, create_checkpoint: bool) -> Self {
self.create_checkpoint = create_checkpoint;
Expand Down

0 comments on commit cd47e2e

Please sign in to comment.