diff --git a/examples/databases/src/main.rs b/examples/databases/src/main.rs index 95aa2a4..5aee36f 100644 --- a/examples/databases/src/main.rs +++ b/examples/databases/src/main.rs @@ -46,7 +46,7 @@ async fn main() -> io::Result<()> { // // -async fn index(req: web::Data, name: web::Path<(String)>) -> impl Responder { +async fn index(pool: web::Data, name: web::Path<(String)>) -> impl Responder { let name = name.into_inner(); let conn = pool.get().expect("couldn't get db connection from pool");