Skip to content

Commit

Permalink
make storage batch request honor options.getHost() (#3340)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihanzhen authored Jun 4, 2018
1 parent 15d9861 commit cb0eb49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void submit() {
// TODO(hailongwen@): instrument 'google-api-java-client' to further break down the span.
// Here we only add a annotation to at least know how much time each batch takes.
span.addAnnotation("Execute batch request");
batch.setBatchUrl(new GenericUrl("https://www.googleapis.com/batch/storage/v1"));
batch.setBatchUrl(new GenericUrl(String.format("%s/batch/storage/v1", options.getHost())));
batch.execute();
}
} catch (IOException ex) {
Expand Down

0 comments on commit cb0eb49

Please sign in to comment.