Skip to content

Commit

Permalink
Merge pull request #5 from m-lab/sandbox-cristinaleon-locate-prod
Browse files Browse the repository at this point in the history
Update the Locate query to use the production URL
  • Loading branch information
cristinaleonr authored Aug 20, 2024
2 parents 7a85ad0 + a6f7984 commit 27eb28b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@

// If no server was specified then use a loadbalancer. If no loadbalancer
// is specified, use the locate service from Measurement Lab.
// TODO(cristinaleon): Change the URL once the daemonset is deployed in production.
const lbURL = (config && ('loadbalancer' in config)) ? new URL(config.loadbalancer) : new URL('https://locate-dot-mlab-sandbox.appspot.com/v2/nearest/pt/ndt7');
const lbURL = (config && ('loadbalancer' in config)) ? new URL(config.loadbalancer) : new URL('https://locate.measurementlab.net/v2/nearest/pt/ndt7');
lbURL.search = metadata;
callbacks.serverDiscovery({loadbalancer: lbURL});
const response = await fetch(lbURL).catch((err) => {
Expand Down

0 comments on commit 27eb28b

Please sign in to comment.