Skip to content

Commit

Permalink
Command line port fix + query chunk size fix (#42)
Browse files Browse the repository at this point in the history
* fix for command line listener port override

* reduce parameter query size
  • Loading branch information
yeastplume authored Apr 15, 2019
1 parent 8b5dab8 commit cbeab0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion impls/src/node_clients/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/bin/cmd/wallet_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cbeab0c

Please sign in to comment.