Command line port fix + query chunk size fix (#42)

* fix for command line listener port override

* reduce parameter query size
This commit is contained in:
Yeastplume
2019-04-15 14:15:55 +01:00
committed by GitHub
parent e9b2bdec0e
commit 7268f041b4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ impl NodeClient for HTTPNodeClient {
let mut api_outputs: HashMap<pedersen::Commitment, (String, u64, u64)> = HashMap::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("&"),);
tasks.push(api::client::get_async::<Vec<api::Output>>(
url.as_str(),
+1 -1
View File
@@ -582,7 +582,7 @@ pub fn wallet_command(
let mut c = wallet_config.clone();
let mut g = global_wallet_args.clone();
let a = arg_parse!(parse_listen_args(&mut c, &mut g, &args));
command::listen(&wallet_config, &a, &g)
command::listen(&c, &a, &g)
}
("owner_api", Some(_)) => {
let mut g = global_wallet_args.clone();