Skip to content

Commit 73ce94f

Browse files
committed
fix: enable tls
1 parent 7fcb30a commit 73ce94f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ prometheus = "0.10"
1515
tracing = "0.1"
1616
tracing-subscriber = "0.2"
1717
tracing-futures = { version = "0.2.4", features = ["futures-03"]}
18-
sqlx = { version = "0.4.0-beta.1", default-features = false, features = [ "runtime-tokio", "macros", "migrate"] }
18+
sqlx = { version = "0.4.0-beta.1", default-features = false, features = [ "runtime-tokio", "macros", "migrate", "tls"] }
1919
tokio = { version = "0.2", features = ["dns", "tcp", "udp"] }
2020
uuid = { version = "0.8", features = ["v4"] }
2121
simplelog = "0.8"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async fn setup_database(db: &str) -> Result<PgPool, sqlx::Error> {
8484
.max_connections(5)
8585
.connect_with(options)
8686
.await?;
87-
debug!("Created DB pool");
87+
debug!(?pool, "Created DB pool");
8888

8989
MIGRATOR.run(&pool).await?;
9090
info!("Ran migration");

0 commit comments

Comments
 (0)