Skip to content

Commit

Permalink
Improvement in the description of examples in project documentation: …
Browse files Browse the repository at this point in the history
…Fixing errors found in tests.
  • Loading branch information
JMTamayo committed Apr 24, 2024
1 parent 8d9b1ad commit a490653
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ For more dependency options from git, check section [3.0 Cargo Reference](https:
Create a new producer instance:

```rust,no_run
use std::collections::HashMap;
use redsumer_rs::*;
use redsumer::*;
let credentials: Option<ClientCredentials> = None;
let host: &str = "localhost";
Expand Down
32 changes: 16 additions & 16 deletions redsumer-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
//! Create a new producer instance:
//!
//! ```rust,no_run
//! use redsumer_rs::*;
//! use redsumer::*;
//!
//! let credentials: Option<ClientCredentials> = None;
//! let host: &str = "localhost";
//! let port: &str = "6379";
//! let db: &str = "0";
//! let stream_name: &str = "my-stream";
//!
//! let producer_result: RedsumerResult<RedsumerProducer> =
//! RedsumerProducer::new(
//! credentials,
//! host,
//! port,
//! db,
//! stream_name,
//! );
//! let credentials: Option<ClientCredentials> = None;
//! let host: &str = "localhost";
//! let port: &str = "6379";
//! let db: &str = "0";
//! let stream_name: &str = "my-stream";
//!
//! let producer: RedsumerProducer = producer_result.unwrap();
//! let producer_result: RedsumerResult<RedsumerProducer> =
//! RedsumerProducer::new(
//! credentials,
//! host,
//! port,
//! db,
//! stream_name,
//! );
//!
//! let producer: RedsumerProducer = producer_result.unwrap();
//! ```
//!
//! Create a new consumer instance:
Expand Down

0 comments on commit a490653

Please sign in to comment.