1
0
Fork 0
mirror of https://github.com/mCaptcha/mCaptcha.git synced 2025-05-05 22:52:50 +03:00

Fix typos

This commit is contained in:
Kian-Meng Ang 2022-08-04 23:06:54 +08:00
parent 961bb6c5f4
commit bb42841a66
19 changed files with 43 additions and 43 deletions
db/db-sqlx-postgres/src

View file

@ -35,7 +35,7 @@ pub struct Database {
/// Use an existing database pool
pub struct Conn(pub PgPool);
/// Connect to databse
/// Connect to database
pub enum ConnectionOptions {
/// fresh connection
Fresh(Fresh),
@ -830,7 +830,7 @@ impl MCDatabase for Database {
Ok(())
}
/// featch PoWConfig fetches
/// fetch PoWConfig fetches
async fn fetch_config_fetched(&self, user: &str, key: &str) -> DBResult<Vec<i64>> {
let records = sqlx::query_as!(
Date,
@ -856,7 +856,7 @@ impl MCDatabase for Database {
Ok(Date::dates_to_unix(records))
}
/// featch PoWConfig solves
/// fetch PoWConfig solves
async fn fetch_solve(&self, user: &str, key: &str) -> DBResult<Vec<i64>> {
let records = sqlx::query_as!(
Date,
@ -880,7 +880,7 @@ impl MCDatabase for Database {
Ok(Date::dates_to_unix(records))
}
/// featch PoWConfig confirms
/// fetch PoWConfig confirms
async fn fetch_confirm(&self, user: &str, key: &str) -> DBResult<Vec<i64>> {
let records = sqlx::query_as!(
Date,