Pick random server number on simple selection
This commit is contained in:
parent
7a4ec7364f
commit
d264c0089d
|
@ -173,7 +173,7 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
|
||||||
let model = models[indexPath.section]
|
let model = models[indexPath.section]
|
||||||
let group = model.sortedGroups[indexPath.row]
|
let group = model.sortedGroups[indexPath.row]
|
||||||
let groupPools = model.poolsByGroup[group]!
|
let groupPools = model.poolsByGroup[group]!
|
||||||
guard let pool = groupPools.first else {
|
guard let pool = groupPools.randomElement() else {
|
||||||
fatalError("Empty pools in group \(group)")
|
fatalError("Empty pools in group \(group)")
|
||||||
}
|
}
|
||||||
currentPool = pool
|
currentPool = pool
|
||||||
|
|
Loading…
Reference in New Issue