Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszczerpak-cloudinary committed Dec 9, 2024
1 parent 82c9d78 commit 9af7764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wtp/locationSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ class LocationSelector {
constructor() {
if (!LocationSelector.instance) {
this.cachedAllLocations = [];
this.location = config.get('locationSelector.locationSelector.defaultLocation');
this.location = config.get('wtp.locationSelector.defaultLocation');
this.lastUpdated = null;
this.mutex = withTimeout(new Mutex(), config.get('locationSelector.locationSelector.updateTimeout') * 1000);
this.mutex = withTimeout(new Mutex(), config.get('wtp.locationSelector.updateTimeout') * 1000);
LocationSelector.instance = this;
}
return LocationSelector.instance;
}

isExpired() {
const now = Date.now();
return (!this.lastUpdated || (now - this.lastUpdated) > config.get('locationSelector.locationSelector.cacheTtl') * 1000);
return (!this.lastUpdated || (now - this.lastUpdated) > config.get('wtp.locationSelector.cacheTtl') * 1000);
}

async fetchLocations() {
Expand Down

0 comments on commit 9af7764

Please sign in to comment.