mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
decrease chunk size in outputs by ids (#2747)
This commit is contained in:
parent
fb7fd62c8b
commit
79c97c30ba
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue