Skip to content

Commit

Permalink
Use HA api endpoint only
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Feb 22, 2024
1 parent ab9cb76 commit ab727f3
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions lib/service/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ const {UpdateMode} = require('../update-mode')

class Config {
static defaultFoxyDashboardApiUrl = 'https://chia-dashboard-api.foxypool.io'
static foxyDashboardApiUrls = [
Config.defaultFoxyDashboardApiUrl,
'https://chia-dashboard-api-2.foxypool.io',
'https://chia-dashboard-api-3.foxypool.io',
]

async init() {
mkdirSync(this.configDirectory, { recursive: true, mode: 0o770 });
Expand Down Expand Up @@ -43,17 +38,11 @@ class Config {
if (this.config.chiaDashboardCoreUrlKeyPairs !== undefined && this.config.chiaDashboardCoreUrlKeyPairs.length > 0) {
return this.config.chiaDashboardCoreUrlKeyPairs
}
if (this.chiaDashboardCoreUrl !== Config.defaultFoxyDashboardApiUrl) {
return [{
dashboardCoreUrl: this.chiaDashboardCoreUrl,
apiKey: this.apiKey,
}]
}

return Config.foxyDashboardApiUrls.map(dashboardCoreUrl => ({
dashboardCoreUrl,
return [{
dashboardCoreUrl: this.chiaDashboardCoreUrl,
apiKey: this.apiKey,
}))
}]
}

get responseTimeSampleSize() {
Expand Down

0 comments on commit ab727f3

Please sign in to comment.