Send wait parameter if included
This change sends the wait parameter on the URL, if included. Previously
a URL with the parameter was constructed, but never sent, so the wait
parameter was not included in the request.
@@ -294,7 +294,7 @@ fn wait_for_batches(
debug!("Checking batches via {}", url);
let request = Client::new()
- .get(url.clone())
+ .get(url_with_query.clone())
.header("Authorization", auth.to_string());
let response = perform_request(request)?;
