mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
chore: remove deprecated calls
This commit is contained in:
parent
1e294fa1ab
commit
3596d6af6a
@ -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)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user