Fix two comment typos (#1172)

This commit is contained in:
Allan
2022-07-18 17:16:38 +00:00
committed by GitHub
parent 73041c8988
commit 928d60fbba
+2 -2
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)> {