Skip to content

Commit 0029ca5

Browse files
authored
commitlog: Make commit module public, and allow access to header fields (#1685)
1 parent 8daab8e commit 0029ca5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/commitlog/src/commit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use spacetimedb_sats::buffer::{BufReader, Cursor, DecodeError};
99
use crate::{error::ChecksumMismatch, payload::Decoder, segment::CHECKSUM_ALGORITHM_CRC32C, Transaction};
1010

1111
pub struct Header {
12-
min_tx_offset: u64,
13-
n: u16,
14-
len: u32,
12+
pub min_tx_offset: u64,
13+
pub n: u16,
14+
pub len: u32,
1515
}
1616

1717
impl Header {

crates/commitlog/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::{io, num::NonZeroU16, path::PathBuf, sync::RwLock};
22

33
use log::trace;
44

5-
mod commit;
5+
pub mod commit;
66
pub mod commitlog;
77
pub mod repo;
88
pub mod segment;

0 commit comments

Comments
 (0)