Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mobc-redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["redis", "pool", "async", "await"]

[dependencies]
mobc = { version = "0.8", path = ".." }
redis = { version = "0.24.0" }
redis = { version = "0.28" }

[features]
default = ["mobc/tokio", "redis/tokio-comp"]
Expand Down
8 changes: 3 additions & 5 deletions mobc-redis/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pub use redis;
pub use mobc;
pub use redis;

use mobc::async_trait;
use mobc::Manager;
use redis::aio::Connection;
use redis::aio::MultiplexedConnection as Connection;
use redis::{Client, ErrorKind};

pub struct RedisConnectionManager {
Expand All @@ -22,7 +22,7 @@ impl Manager for RedisConnectionManager {
type Error = redis::RedisError;

async fn connect(&self) -> Result<Self::Connection, Self::Error> {
let c = self.client.get_async_connection().await?;
let c = self.client.get_multiplexed_async_connection().await?;
Ok(c)
}

Expand All @@ -34,5 +34,3 @@ impl Manager for RedisConnectionManager {
Ok(conn)
}
}


Loading