From a051b5162db47a7e666a30ae02288864739c5c6b Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Fri, 16 Feb 2024 20:37:25 -0500 Subject: [PATCH] Fix Github action --- .github/workflows/general.yml | 5 +++-- src/main.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index 6a2fbfb..e722ece 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -51,7 +51,7 @@ jobs: SKIP_DOCKER=true ./scripts/init_db.sh - name: Check sqlx-data.json is up-to-date run: | - cargo slqx prepare --workspace --check + cargo sqlx prepare --workspace --check - name: Run tests run: cargo test @@ -99,8 +99,9 @@ jobs: run: | sudo apt-get install libpq-dev -y SKIP_DOCKER=true ./scripts/init_db.sh + - name: Check sqlx-data.json is up-to-date run: | - cargo slqx prepare --workspace --check + cargo sqlx prepare --workspace --check - name: Linting run: cargo clippy -- -D warnings diff --git a/src/main.rs b/src/main.rs index 0087859..dedb269 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,8 +16,9 @@ async fn main() -> Result<(), std::io::Error> { let configuration = get_configuration().expect("Failed to read configuraion"); // Setup Database Connection. - let conn_pool = PgPool::connect_lazy(configuration.database.connection_string().expose_secret()) - .expect("Failed to connect to Postgres."); + let conn_pool = + PgPool::connect_lazy(configuration.database.connection_string().expose_secret()) + .expect("Failed to connect to Postgres."); // Setup TCP connection. let addr = format!("127.0.0.1:{}", configuration.application_port);