Skip to content

Commit

Permalink
Fix shadowed variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Jun 7, 2021
1 parent f1ac26c commit a607de9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Workers/net-worker/stellar-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ function delay(ms: number) {

let roundRobinIndex = 0
async function getRandomURL(network: Networks) {
const [mainnetURLs, testnetURLs] = await initialHorizonSelection
const horizonURLs = network === Networks.PUBLIC ? mainnetURLs : testnetURLs
const [mainnet, testnet] = await initialHorizonSelection
const horizonURLs = network === Networks.PUBLIC ? mainnet : testnet
const url = horizonURLs[roundRobinIndex % horizonURLs.length]
roundRobinIndex += 1
return url
Expand Down Expand Up @@ -179,6 +179,7 @@ initialHorizonSelection
testnetURLs = result[1]
selectionPending = false
})
// tslint:disable-next-line no-console
.catch(console.error)

export function getHorizonURLs(testnet: boolean = false) {
Expand Down

0 comments on commit a607de9

Please sign in to comment.