mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-29 22:10:59 +00:00
Fix two comment typos (#1172)
This commit is contained in:
parent
73041c8988
commit
928d60fbba
@ -26,7 +26,7 @@ async fn main() {
|
|||||||
.with(tracing_subscriber::fmt::layer())
|
.with(tracing_subscriber::fmt::layer())
|
||||||
.init();
|
.init();
|
||||||
|
|
||||||
// setup connection pool
|
// set up connection pool
|
||||||
let manager =
|
let manager =
|
||||||
PostgresConnectionManager::new_from_stringlike("host=localhost user=postgres", NoTls)
|
PostgresConnectionManager::new_from_stringlike("host=localhost user=postgres", NoTls)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -51,7 +51,7 @@ async fn main() {
|
|||||||
|
|
||||||
type ConnectionPool = Pool<PostgresConnectionManager<NoTls>>;
|
type ConnectionPool = Pool<PostgresConnectionManager<NoTls>>;
|
||||||
|
|
||||||
// we can exact the connection pool with `Extension`
|
// we can extract the connection pool with `Extension`
|
||||||
async fn using_connection_pool_extractor(
|
async fn using_connection_pool_extractor(
|
||||||
Extension(pool): Extension<ConnectionPool>,
|
Extension(pool): Extension<ConnectionPool>,
|
||||||
) -> Result<String, (StatusCode, String)> {
|
) -> Result<String, (StatusCode, String)> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user