Skip to content

Commit

Permalink
Fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Apr 1, 2016
1 parent 0849646 commit df86a44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected String defaultHost() {
String host = System.getProperty(
com.google.datastore.v1beta3.client.DatastoreHelper.LOCAL_HOST_ENV_VAR,
System.getenv(com.google.datastore.v1beta3.client.DatastoreHelper.LOCAL_HOST_ENV_VAR));
return host != null ? host : super.defaultHost();
return host != null ? host : com.google.datastore.v1beta3.client.DatastoreFactory.DEFAULT_HOST;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ public DefaultDatastoreRpc(DatastoreOptions options) {
if (fullURL.charAt(fullURL.length() - 1) != '/') {
fullURL = fullURL + '/';
}
fullURL = fullURL + "datastore/"
+ com.google.datastore.v1beta3.client.DatastoreFactory.VERSION + "/projects/"
fullURL = fullURL
+ com.google.datastore.v1beta3.client.DatastoreFactory.VERSION
+ "/projects/"
+ options.projectId();
clientBuilder = clientBuilder.projectId(null).projectEndpoint(fullURL);
}
Expand Down

0 comments on commit df86a44

Please sign in to comment.