File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use crate::certs::CRUNCHY;
22use diesel:: { Connection , ConnectionResult , PgConnection , QueryResult } ;
33use diesel_async:: pooled_connection:: deadpool:: { Hook , HookError } ;
44use diesel_async:: pooled_connection:: ManagerConfig ;
5- use diesel_async:: { AsyncConnection , AsyncPgConnection , RunQueryDsl } ;
5+ use diesel_async:: { AsyncPgConnection , RunQueryDsl } ;
66use native_tls:: { Certificate , TlsConnector } ;
77use postgres_native_tls:: MakeTlsConnector ;
88use secrecy:: ExposeSecret ;
@@ -27,7 +27,7 @@ pub async fn oneoff_async_connection_with_config(
2727 config : & config:: DatabasePools ,
2828) -> ConnectionResult < AsyncPgConnection > {
2929 let url = connection_url ( config, config. primary . url . expose_secret ( ) ) ;
30- AsyncPgConnection :: establish ( & url) . await
30+ establish_async_connection ( & url, config . enforce_tls ) . await
3131}
3232
3333pub async fn oneoff_async_connection ( ) -> anyhow:: Result < AsyncPgConnection > {
You can’t perform that action at this time.
0 commit comments