Skip to content

Commit

Permalink
fix: missing redis Client
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jan 2, 2024
1 parent 1e7a697 commit c413852
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sessions/tests/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));
Expand Down

0 comments on commit c413852

Please sign in to comment.