Skip to content

Commit

Permalink
Fix usage of deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtusz committed Sep 26, 2024
1 parent 75b50f0 commit 3bc1877
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)]

use async_session::{async_trait, serde_json, Result, Session, SessionStore};
use redis::{aio::Connection, AsyncCommands, Client, IntoConnectionInfo, RedisResult};
use redis::{aio::MultiplexedConnection, AsyncCommands, Client, IntoConnectionInfo, RedisResult};

/// # RedisSessionStore
#[derive(Clone, Debug)]
Expand Down Expand Up @@ -108,8 +108,8 @@ impl RedisSessionStore {
}
}

async fn connection(&self) -> RedisResult<Connection> {
self.client.get_async_std_connection().await
async fn connection(&self) -> RedisResult<MultiplexedConnection> {
self.client.get_multiplexed_async_std_connection().await
}
}

Expand Down

0 comments on commit 3bc1877

Please sign in to comment.