From c413852c1bec5b514c7ae60dda0cc0e329ec6099 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Tue, 2 Jan 2024 16:05:10 +0800 Subject: [PATCH] fix: missing redis Client --- sessions/tests/redis.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sessions/tests/redis.rs b/sessions/tests/redis.rs index d70590f..b62cf14 100644 --- a/sessions/tests/redis.rs +++ b/sessions/tests/redis.rs @@ -4,16 +4,14 @@ use std::sync::atomic::Ordering; use std::sync::Arc; use anyhow::Result; -use redis::aio::ConnectionManager; +use redis::{aio::ConnectionManager, Client}; use sessions::*; #[tokio::test] async fn redis() -> Result<()> { let config = Arc::new(Store::new( - RedisStorage::new( - ConnectionManager::new(RedisClient::open("unix:///tmp/redis.sock")?).await?, - ), + RedisStorage::new(ConnectionManager::new(Client::open("unix:///tmp/redis.sock")?).await?), nano_id::base64::<32>, |sid: &str| sid.len() == 32, ));