Skip to content

Commit

Permalink
chore: mandatory read start_seq_num (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbalogh authored Dec 5, 2024
1 parent d67d1ba commit a5ea940
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }

[dependencies.streamstore]
git = "https://github.com/s2-streamstore/s2-sdk-rust.git"
rev = "924594f84c33562aae67ee465dfd9cdfd9917230"
rev = "b1547bcd55a4f3b5b76104a6ffd374014671d617"
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ enum Commands {
/// Name of the stream.
stream: String,

/// Starting sequence number (inclusive). If not specified, the latest record.
#[arg(short = 's', long)]
start_seq_num: Option<u64>,
/// Starting sequence number (inclusive).
#[arg(short = 's', long, default_value_t = 0)]
start_seq_num: u64,

/// Output records to a file or stdout.
/// Use "-" to write to stdout.
Expand Down
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl StreamService {

pub async fn read_session(
&self,
start_seq_num: Option<u64>,
start_seq_num: u64,
limit_count: Option<u64>,
limit_bytes: Option<u64>,
) -> Result<Streaming<ReadOutput>, ServiceError> {
Expand Down

0 comments on commit a5ea940

Please sign in to comment.