mirror of
https://github.com/actix/examples
synced 2024-11-27 07:52:57 +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>,
|
||||
) -> actix_web::Result<impl Responder> {
|
||||
let mut conn = redis
|
||||
.get_tokio_connection_manager()
|
||||
.get_connection_manager()
|
||||
.await
|
||||
.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> {
|
||||
let mut conn = redis
|
||||
.get_tokio_connection_manager()
|
||||
.get_connection_manager()
|
||||
.await
|
||||
.map_err(error::ErrorInternalServerError)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user