Skip to content

Commit

Permalink
rust: breaking change: set default chunk size to a sane value
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Dec 22, 2022
1 parent 05ed389 commit af038fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories = [ "science::robotics", "compression" ]
repository = "https://github.com/foxglove/mcap"
documentation = "https://docs.rs/mcap"
readme = "README.md"
version = "0.6.0"
version = "0.7.0"
edition = "2021"
license = "MIT"

Expand Down
4 changes: 2 additions & 2 deletions rust/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Default for WriteOptions {
#[cfg(not(feature = "zstd"))]
compression: None,
profile: String::new(),
chunk_size: None,
chunk_size: Some(1024 * 768),
}
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ impl WriteOptions {
/// specifies the target uncompressed size of each chunk.
///
/// Messages will be written to chunks until the uncompressed chunk is larger than the
/// target chunk size, at which point th chunk will be closed and a new one started.
/// target chunk size, at which point the chunk will be closed and a new one started.
/// If `None`, chunks will not be automatically closed and the user must call `flush()` to
/// begin a new chunk.
pub fn chunk_size(self, chunk_size: Option<u64>) -> Self {
Expand Down

0 comments on commit af038fe

Please sign in to comment.