mirror of
https://github.com/Magnus167/msyrs.git
synced 2025-08-20 07:20:01 +00:00
working...
This commit is contained in:
parent
b7bccf342d
commit
fe1c348dc7
@ -129,7 +129,7 @@ impl JPMaQSDownload {
|
||||
// .map(|tsv| JPMaQSIndicator::new(tsv))
|
||||
// .collect::<Result<Vec<JPMaQSIndicator>, Box<dyn Error>>>()?;
|
||||
let indicators: Vec<_> = dqts_vec
|
||||
.par_iter()
|
||||
.into_par_iter() // Use into_par_iter() to parallelize and consume dqts_vec
|
||||
.flat_map(|dqts| {
|
||||
dqts.get_timeseries_by_ticker()
|
||||
.into_par_iter()
|
||||
|
@ -18,7 +18,7 @@ const TIMESERIES_ENDPOINT: &str = "/expressions/time-series";
|
||||
const CATALOGUE_ENDPOINT: &str = "/group/instruments";
|
||||
const API_DELAY_MILLIS: u64 = 200;
|
||||
|
||||
const MAX_THREAD_WORKERS: usize = 20;
|
||||
const MAX_THREAD_WORKERS: usize = 100;
|
||||
// const JPMAQS_CATALOGUE_GROUP: &str = "JPMAQS";
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user