decrease chunk size in outputs by ids (#2747)

This commit is contained in:
Mark Renten 2019-04-12 07:47:40 -04:00 committed by hashmap
parent fb7fd62c8b
commit 79c97c30ba

View file

@ -110,7 +110,7 @@ impl NodeClient for HTTPNodeClient {
let mut api_outputs: HashMap<pedersen::Commitment, (String, u64, u64)> = HashMap::new(); let mut api_outputs: HashMap<pedersen::Commitment, (String, u64, u64)> = HashMap::new();
let mut tasks = Vec::new(); let mut tasks = Vec::new();
for query_chunk in query_params.chunks(500) { for query_chunk in query_params.chunks(200) {
let url = format!("{}/v1/chain/outputs/byids?{}", addr, query_chunk.join("&"),); let url = format!("{}/v1/chain/outputs/byids?{}", addr, query_chunk.join("&"),);
tasks.push(api::client::get_async::<Vec<api::Output>>( tasks.push(api::client::get_async::<Vec<api::Output>>(
url.as_str(), url.as_str(),