Refactor Yahoo Finance client to fetch symbols concurrently and fix clippy warnings

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-07-08 11:47:00 +00:00
parent fb03dc8d14
commit cd5da736e0

View file

@ -319,11 +319,9 @@ async fn fetch_market_data(
let mut prices = std::collections::HashMap::new(); let mut prices = std::collections::HashMap::new();
let results = futures::future::join_all(futures_reqs).await; let results = futures::future::join_all(futures_reqs).await;
for res in results { for (sym, price) in results.into_iter().flatten() {
if let Some((sym, price)) = res {
prices.insert(sym, price); prices.insert(sym, price);
} }
}
if !prices.is_empty() { if !prices.is_empty() {
let cache = MarketCache { let cache = MarketCache {