1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

chore: remove deprecated calls

This commit is contained in:
Rob Ede 2023-12-26 03:56:28 +00:00
parent 1e294fa1ab
commit 3596d6af6a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -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)?;