Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Apr 13, 2024
1 parent 088ba70 commit ba703b7
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion benchmark/src/bin/baseline.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{runtime::sleep, StreamUrl};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/bin/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{
Buffer, Consumer, ConsumerMode, ConsumerOptions, Message, SeaConsumer, SeaConsumerOptions,
SeaMessage, SeaStreamReset, SeaStreamer, StreamUrl, Streamer,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/bin/producer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{Producer, SeaProducer, SeaStreamer, StreamUrl, Streamer};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/bin/relay.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::stdio::StdioStreamer;
use sea_streamer::{Consumer, Message, Producer, StreamKey, Streamer, StreamerUri};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/blocking.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use flume::bounded;
use std::time::Duration;
use clap::Parser;

use sea_streamer::{
runtime::{sleep, spawn_task},
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/buffered.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use flume::bounded;
use std::time::Duration;
use clap::Parser;

use sea_streamer::{
runtime::{sleep, spawn_task},
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{
Buffer, Consumer, ConsumerMode, ConsumerOptions, Message, SeaConsumer, SeaConsumerOptions,
SeaMessage, SeaStreamReset, SeaStreamer, StreamUrl, Streamer,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/processor.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{
Buffer, Consumer, ConsumerMode, ConsumerOptions, Message, Producer, SeaConsumer,
SeaConsumerOptions, SeaMessage, SeaProducer, SeaStreamer, StreamUrl, Streamer,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/producer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{Producer, SeaProducer, SeaStreamer, StreamUrl, Streamer};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/resumable.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer::{
kafka::AutoOffsetReset,
redis::{AutoCommit, AutoStreamReset},
Expand All @@ -7,7 +8,6 @@ use sea_streamer::{
Streamer,
};
use std::time::Duration;
use clap::Parser;

const TRANSACTION: bool = true;

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
@@ -1,8 +1,8 @@
use anyhow::{anyhow, Result};
use clap::Parser;
use sea_streamer_file::{FileId, FileStreamer};
use sea_streamer_types::{Producer, StreamKey, Streamer};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-file/src/bin/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
//! /* beacon */
//! ```
use anyhow::Result;
use clap::Parser;
use sea_streamer_file::{
format::MessageJson, is_end_of_stream, FileErr, FileId, MessageSource, StreamMode,
};
use sea_streamer_types::{Buffer, Message, TIMESTAMP_FORMAT};
use std::str::FromStr;
use clap::Parser;

#[derive(Parser)]
struct Args {
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
@@ -1,8 +1,8 @@
use anyhow::{anyhow, Result};
use clap::Parser;
use sea_streamer_file::{FileId, MessageSink, DEFAULT_BEACON_INTERVAL, DEFAULT_FILE_SIZE_LIMIT};
use sea_streamer_types::{MessageHeader, OwnedMessage, ShardId, StreamKey, Timestamp};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-file/src/bin/tail.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! A for demo `tail -f` program.
use anyhow::Result;
use sea_streamer_file::{FileId, FileSource, ReadFrom};
use clap::Parser;
use sea_streamer_file::{FileId, FileSource, ReadFrom};

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-kafka/src/bin/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_kafka::{AutoOffsetReset, KafkaConsumerOptions, KafkaStreamer};
use sea_streamer_types::{
Buffer, Consumer, ConsumerMode, ConsumerOptions, Message, StreamUrl, Streamer,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-kafka/src/bin/producer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_kafka::KafkaStreamer;
use sea_streamer_types::{Producer, StreamUrl, Streamer};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
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
@@ -1,12 +1,12 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_file::{FileId, MessageSink, DEFAULT_BEACON_INTERVAL, DEFAULT_FILE_SIZE_LIMIT};
use sea_streamer_redis::{AutoStreamReset, RedisConsumerOptions, RedisStreamer};
use sea_streamer_types::{
Consumer, ConsumerMode, ConsumerOptions, Message, StreamUrl, Streamer, Timestamp,
TIMESTAMP_FORMAT,
};
use std::time::Duration;
use clap::Parser;
use time::PrimitiveDateTime;

#[derive(Debug, Parser)]
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-redis/src/bin/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_redis::{AutoStreamReset, RedisConsumerOptions, RedisStreamer};
use sea_streamer_types::{
Buffer, Consumer, ConsumerMode, ConsumerOptions, Message, StreamUrl, Streamer,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-redis/src/bin/producer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_redis::RedisStreamer;
use sea_streamer_types::{Producer, StreamUrl, Streamer};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-socket/src/bin/relay.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use anyhow::{bail, Result};
use clap::Parser;
use sea_streamer_socket::{SeaConsumerOptions, SeaStreamer};
use sea_streamer_types::{
Consumer, ConsumerMode, ConsumerOptions, Message, Producer, StreamUrl, Streamer,
};
use std::str::FromStr;
use clap::Parser;

#[cfg(feature = "backend-kafka")]
use sea_streamer_kafka::AutoOffsetReset;
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
@@ -1,8 +1,8 @@
use anyhow::{anyhow, Result};
use clap::Parser;
use sea_streamer_stdio::StdioStreamer;
use sea_streamer_types::{Producer, StreamKey, Streamer, StreamerUri};
use std::time::Duration;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-stdio/src/bin/complex.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! This is just to demonstrate the more complex behaviour of the streamer.
//! Should later put this under a test framework that can manage subprocesses.
use anyhow::Result;
use clap::Parser;
use sea_streamer_stdio::{StdioConsumerOptions, StdioStreamer};
use sea_streamer_types::{
Consumer, ConsumerGroup, ConsumerMode, ConsumerOptions, Message, Producer, StreamKey, Streamer,
StreamerUri,
};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-stdio/src/bin/relay.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::Parser;
use sea_streamer_stdio::StdioStreamer;
use sea_streamer_types::{Consumer, Message, Producer, StreamKey, Streamer, StreamerUri};
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
Expand Down

0 comments on commit ba703b7

Please sign in to comment.