mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 08:00:59 +00:00
refactor: simplify ssl_mode check per bot review
The ssl_mode values verify-ca and verify-full are already normalized to 'require' earlier in the function (line 689), so we only need to check for 'require' in the conditional.
This commit is contained in:
@@ -701,7 +701,7 @@ async fn setup_ducklake_catalog_db_inner(
|
||||
sslmode = ssl_mode
|
||||
);
|
||||
|
||||
let (client, connection) = if ssl_mode == "require" || ssl_mode == "verify-ca" || ssl_mode == "verify-full" {
|
||||
let (client, connection) = if ssl_mode == "require" {
|
||||
use native_tls::TlsConnector;
|
||||
use postgres_native_tls::MakeTlsConnector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user