Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Apr 24, 2024
1 parent cd0abd5 commit a39e6f8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
components: clippy
- run: cargo fmt --all -- --check
- run: cargo build --all
- run: cargo build --manifest-path "sea-streamer-file/Cargo.toml" --features executables
- run: cargo test --all
- run: cargo test --package sea-streamer-stdio --test '*' --features test -- --nocapture
- run: cargo test --package sea-streamer-file --test '*' --features test,runtime-async-std -- --nocapture
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-file/src/bin/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::time::Duration;
struct Args {
#[clap(long, help = "Stream to this file")]
file: FileId,
#[clap(long, parse(try_from_str = parse_duration), help = "Period of the clock. e.g. 1s, 100ms")]
#[clap(long, value_parser = parse_duration, help = "Period of the clock. e.g. 1s, 100ms")]
interval: Duration,
}

Expand Down
1 change: 1 addition & 0 deletions sea-streamer-file/src/bin/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct Args {
format: Format,
}

#[derive(Copy, Clone)]
enum Format {
Log,
Ndjson,
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-file/src/bin/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::time::Duration;
struct Args {
#[clap(long, help = "Stream to this file")]
file: FileId,
#[clap(long, parse(try_from_str = parse_duration), help = "Period of the clock. e.g. 1s, 100ms")]
#[clap(long, value_parser = parse_duration, help = "Period of the clock. e.g. 1s, 100ms")]
interval: Duration,
}

Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-redis/redis-streams-dump/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use sea_streamer_types::{
use std::time::Duration;
use time::PrimitiveDateTime;

#[derive(Debug, Parser)]
#[derive(Parser)]
struct Args {
#[clap(
long,
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-stdio/src/bin/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::time::Duration;
struct Args {
#[clap(long, help = "Stream key")]
stream: StreamKey,
#[clap(long, parse(try_from_str = parse_duration), help = "Period of the clock. e.g. 1s, 100ms")]
#[clap(long, value_parser = parse_duration, help = "Period of the clock. e.g. 1s, 100ms")]
interval: Duration,
}

Expand Down

0 comments on commit a39e6f8

Please sign in to comment.