Skip to content

Commit c334195

Browse files
committed
fix: don' panick if there's already a default crypto
1 parent 8efad83 commit c334195

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib_context.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ pub fn create_lib_context(settings: settings::Settings) -> Result<LibContext> {
248248

249249
pyo3_async_runtimes::tokio::init_with_runtime(get_runtime()).unwrap();
250250

251-
rustls::crypto::aws_lc_rs::default_provider()
252-
.install_default()
253-
.unwrap();
251+
let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
254252
});
255253

256254
let db_pools = DbPools::default();

0 commit comments

Comments
 (0)