@@ -117,11 +117,7 @@ export const getLocationValues = async (
117117 const locationMap = new Map < string , number > ( ) ;
118118 const locationArr : { name : string ; numberOfNodes : number } [ ] = [ ] ;
119119 for ( const candidate of validCandidates ) {
120- const candidateLocation = await getCandidateLocation (
121- candidate . slotId ,
122- candidate . name ,
123- candidate . stash ,
124- ) ;
120+ const candidateLocation = await getCandidateLocation ( candidate . slotId ) ;
125121 const location = candidateLocation ?. city || NoLocation . NoLocation ;
126122
127123 const locationCount = locationMap . get ( location ) ;
@@ -155,11 +151,7 @@ export const getRegionValues = async (
155151 const regionMap = new Map < string , number > ( ) ;
156152 const regionArr : { name : string ; numberOfNodes : number } [ ] = [ ] ;
157153 for ( const candidate of validCandidates ) {
158- const candidateLocation = await getCandidateLocation (
159- candidate . slotId ,
160- candidate . name ,
161- candidate . stash ,
162- ) ;
154+ const candidateLocation = await getCandidateLocation ( candidate . slotId ) ;
163155 const region =
164156 candidateLocation && candidateLocation . region
165157 ? candidateLocation . region
@@ -196,11 +188,7 @@ export const getCountryValues = async (
196188 const countryMap = new Map < string , number > ( ) ;
197189 const countryArr : { name : string ; numberOfNodes : number } [ ] = [ ] ;
198190 for ( const candidate of validCandidates ) {
199- const candidateLocation = await getCandidateLocation (
200- candidate . slotId ,
201- candidate . name ,
202- candidate . stash ,
203- ) ;
191+ const candidateLocation = await getCandidateLocation ( candidate . slotId ) ;
204192 const country =
205193 candidateLocation && candidateLocation . country
206194 ? candidateLocation . country
@@ -235,11 +223,7 @@ export const getProviderValues = async (
235223 const providerMap = new Map < string , number > ( ) ;
236224 const providerArr : { name : string ; numberOfNodes : number } [ ] = [ ] ;
237225 for ( const candidate of validCandidates ) {
238- const candidateLocation = await getCandidateLocation (
239- candidate . slotId ,
240- candidate . name ,
241- candidate . stash ,
242- ) ;
226+ const candidateLocation = await getCandidateLocation ( candidate . slotId ) ;
243227 const provider =
244228 candidateLocation && candidateLocation . provider
245229 ? candidateLocation . provider
0 commit comments