File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ class LocationSelector {
1111 constructor ( ) {
1212 if ( ! LocationSelector . instance ) {
1313 this . cachedAllLocations = [ ] ;
14- this . location = config . get ( 'locationSelector .locationSelector.defaultLocation' ) ;
14+ this . location = config . get ( 'wtp .locationSelector.defaultLocation' ) ;
1515 this . lastUpdated = null ;
16- this . mutex = withTimeout ( new Mutex ( ) , config . get ( 'locationSelector .locationSelector.updateTimeout' ) * 1000 ) ;
16+ this . mutex = withTimeout ( new Mutex ( ) , config . get ( 'wtp .locationSelector.updateTimeout' ) * 1000 ) ;
1717 LocationSelector . instance = this ;
1818 }
1919 return LocationSelector . instance ;
2020 }
2121
2222 isExpired ( ) {
2323 const now = Date . now ( ) ;
24- return ( ! this . lastUpdated || ( now - this . lastUpdated ) > config . get ( 'locationSelector .locationSelector.cacheTtl' ) * 1000 ) ;
24+ return ( ! this . lastUpdated || ( now - this . lastUpdated ) > config . get ( 'wtp .locationSelector.cacheTtl' ) * 1000 ) ;
2525 }
2626
2727 async fetchLocations ( ) {
You can’t perform that action at this time.
0 commit comments