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()) .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)> {