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 fbca41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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

0 comments on commit fbca41f

Please sign in to comment.