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 e8b45e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ 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
- name: Linting
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 e8b45e6

Please sign in to comment.