fix: install default crypto provider

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-10-01 09:23:22 +02:00
parent 43f589b016
commit 2e0779fc6c
No known key found for this signature in database
GPG key ID: E13DFD4B47127951
3 changed files with 3 additions and 0 deletions

View file

@ -85,6 +85,7 @@ async fn main() -> eyre::Result<()> {
dotenvy::dotenv().ok();
color_eyre::install()?;
env_logger::init();
rustls::crypto::aws_lc_rs::default_provider().install_default().expect("Couldn't initialize crypto provider");
let token =
std::env::var("DISCORD_BOT_TOKEN").wrap_err("Couldn't find bot token in environment!")?;