refactor: 1

pull/192/head
xiaojunnuo 3 years ago
parent 09ede0ade7
commit 16223983a7

@ -81,7 +81,7 @@ class SpeedTester {
} }
async test () { async test () {
if (this.backupList.length === 0 || this.testCount < 10 || this.testCount % 5 === 3) { if (this.backupList.length === 0 || this.testCount < 10 || this.testCount % 5 === 0) {
const newList = await this.getIpListFromDns(this.dnsMap) const newList = await this.getIpListFromDns(this.dnsMap)
const newBackupList = [...newList, ...this.backupList] const newBackupList = [...newList, ...this.backupList]
this.backupList = _.unionBy(newBackupList, 'host') this.backupList = _.unionBy(newBackupList, 'host')

Loading…
Cancel
Save