fix: use multi-threaded runtime for email config lookup to avoid blocking
All checks were successful
BotServer CI/CD / build (push) Successful in 4m23s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-04 23:48:00 -03:00
parent 30bb764876
commit 597a962fbf

View file

@ -872,8 +872,9 @@ impl SecretsManager {
let (tx, rx) = std::sync::mpsc::channel();
std::thread::spawn(move || {
let rt = tokio::runtime::Builder::new_current_thread()
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.worker_threads(1)
.build();
let result = if let Ok(rt) = rt {
rt.block_on(async move {