mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Fix two comment typos (#1172)
This commit is contained in:
parent
73041c8988
commit
928d60fbba
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ async fn main() {
|
|||
.with(tracing_subscriber::fmt::layer())
|
||||
.init();
|
||||
|
||||
// setup connection pool
|
||||
// set up connection pool
|
||||
let manager =
|
||||
PostgresConnectionManager::new_from_stringlike("host=localhost user=postgres", NoTls)
|
||||
.unwrap();
|
||||
|
@ -51,7 +51,7 @@ async fn main() {
|
|||
|
||||
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(
|
||||
Extension(pool): Extension<ConnectionPool>,
|
||||
) -> Result<String, (StatusCode, String)> {
|
||||
|
|
Loading…
Reference in a new issue