Fix two comment typos (#1172)

This commit is contained in:
Allan 2022-07-18 14:46:38 -02:30 committed by GitHub
parent 73041c8988
commit 928d60fbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)> {