Skip to content

Commit

Permalink
Fix Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCosme committed Feb 17, 2024
1 parent 23462fe commit a051b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a051b51

Please sign in to comment.