Skip to content

Commit 672b14f

Browse files
kimCentril
andauthored
Update traits.rs
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com> Signed-off-by: Kim Altintop <kim@eagain.io>
1 parent c2f66ed commit 672b14f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/datastore/src/traits.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ pub struct TxData {
239239

240240
impl TxData {
241241
/// Set `tx_offset` as the expected on-disk transaction offset of this transaction.
242+
///
243+
/// Panics if the offset has already been set for this transaction.
242244
pub fn set_tx_offset(&mut self, tx_offset: u64) {
243245
assert!(self.tx_offset.is_none());
244246
self.tx_offset = Some(tx_offset);

0 commit comments

Comments
 (0)