This commit is contained in:
Andrew Pimenov 2026-10-07 07:00:40 +03:00 • committed by GitHub
commit d3326b5a5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -599,6 +599,9 @@ async fn fetch_historical_rates_batch(
app: AppHandle, app: AppHandle,
dates: Vec<String>, dates: Vec<String>,
) -> Result<std::collections::HashMap<String, std::collections::HashMap<String, f64>>, String> { ) -> Result<std::collections::HashMap<String, std::collections::HashMap<String, f64>>, String> {
if dates.len() > 100 {
return Err("too many dates requested".to_string());
}
let mut results = std::collections::HashMap::new(); let mut results = std::collections::HashMap::new();
let mut missing_dates = Vec::new(); let mut missing_dates = Vec::new();