mirror of
https://github.com/actix/examples
synced 2025-08-30 17:50:21 +02:00
chore: remove deprecated calls
This commit is contained in:
@@ -15,7 +15,7 @@ async fn cache_stuff(
|
|||||||
redis: web::Data<redis::Client>,
|
redis: web::Data<redis::Client>,
|
||||||
) -> actix_web::Result<impl Responder> {
|
) -> actix_web::Result<impl Responder> {
|
||||||
let mut conn = redis
|
let mut conn = redis
|
||||||
.get_tokio_connection_manager()
|
.get_connection_manager()
|
||||||
.await
|
.await
|
||||||
.map_err(error::ErrorInternalServerError)?;
|
.map_err(error::ErrorInternalServerError)?;
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ async fn cache_stuff(
|
|||||||
|
|
||||||
async fn del_stuff(redis: web::Data<redis::Client>) -> actix_web::Result<impl Responder> {
|
async fn del_stuff(redis: web::Data<redis::Client>) -> actix_web::Result<impl Responder> {
|
||||||
let mut conn = redis
|
let mut conn = redis
|
||||||
.get_tokio_connection_manager()
|
.get_connection_manager()
|
||||||
.await
|
.await
|
||||||
.map_err(error::ErrorInternalServerError)?;
|
.map_err(error::ErrorInternalServerError)?;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user