test: fix failing unit tests (#1743)

This commit is contained in:
Sanchith Hegde
2023-07-20 15:47:01 +05:30
committed by GitHub
parent 3951561752
commit c4c94241a9
6 changed files with 140 additions and 54 deletions

View File

@ -6,12 +6,11 @@
//!
//! # Examples
//! ```
//! pub mod types;
//! use self::types;
//! use redis_interface::{types::RedisSettings, RedisConnectionPool};
//!
//! #[tokio::main]
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let redis_conn = RedisConnectionPool::new(types::RedisSettings::default()).await;
//! async fn main() {
//! let redis_conn = RedisConnectionPool::new(&RedisSettings::default()).await;
//! // ... redis_conn ready to use
//! }
//! ```