Skip to content

Commit

Permalink
Merge pull request #1 from hack-duke/possible-fix-cryptoprovider
Browse files Browse the repository at this point in the history
fix: add cryptoprovider (maybe)
  • Loading branch information
arvindh-manian authored Oct 10, 2024
2 parents 25e5240 + 8126b25 commit 1b5dc2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ tracing = "0.1"
tracing-subscriber = "0.3.18"
sentry-tracing = "0.32.2"
chrono = {version = "0.4.34", features = ["serde"]}
chrono-tz = "0.8.6"
chrono-tz = "0.8.6"
rustls = "0.23.14"
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use std::process::exit;
use tracing::level_filters::LevelFilter;
use tracing_subscriber::prelude::*;
use crate::tasks::api::handle_queue_request;
use rustls::crypto::aws_lc_rs;

async fn rabbit_mq(uri: &str) -> Result<(), Box<dyn Error>> {
let options = ConnectionProperties::default()
Expand Down Expand Up @@ -77,6 +78,8 @@ async fn rabbit_mq(uri: &str) -> Result<(), Box<dyn Error>> {

#[tokio::main]
async fn main() {
aws_lc_rs::default_provider().install_default().expect("Failed to install default crypto provider");

let mut filter = LevelFilter::DEBUG;
if cfg!(debug_assertions) {
filter = LevelFilter::DEBUG;
Expand Down

0 comments on commit 1b5dc2e

Please sign in to comment.