mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-19 00:00:14 +02:00
examples: Update to redis 0.32 (#3471)
This commit is contained in:
@@ -6,9 +6,7 @@ publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
bb8 = "0.8.5"
|
||||
bb8-redis = "0.17.0"
|
||||
redis = "0.27.2"
|
||||
bb8-redis = "0.24"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
@@ -10,13 +10,13 @@ use axum::{
|
||||
routing::get,
|
||||
Router,
|
||||
};
|
||||
use bb8::{Pool, PooledConnection};
|
||||
use bb8_redis::RedisConnectionManager;
|
||||
use redis::AsyncCommands;
|
||||
use bb8_redis::{
|
||||
bb8::{self, Pool, PooledConnection},
|
||||
redis::AsyncCommands,
|
||||
RedisConnectionManager,
|
||||
};
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
|
||||
use bb8_redis::bb8;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tracing_subscriber::registry()
|
||||
|
||||
Reference in New Issue
Block a user