Skip to content

Commit

Permalink
feat: drop status domain
Browse files Browse the repository at this point in the history
  • Loading branch information
turingczz committed Oct 27, 2022
1 parent 261049c commit 9d28f4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func flatfsSpec() map[string]interface{} {
// DefaultServicesConfig returns the default set of configs for external services.
func DefaultServicesConfig() Services {
return Services{
StatusServerDomain: "https://status.btfs.io",
//StatusServerDomain: "https://status.btfs.io",
OnlineServerDomain: "https://online.btfs.io",
HubDomain: "https://score.btfs.io",
EscrowDomain: "https://escrow.btfs.io",
Expand All @@ -229,7 +229,7 @@ func DefaultServicesConfig() Services {
// DefaultServicesConfigDev returns the default set of configs for dev external services.
func DefaultServicesConfigDev() Services {
return Services{
StatusServerDomain: "https://status-dev.btfs.io",
//StatusServerDomain: "https://status-dev.btfs.io",
OnlineServerDomain: "https://online-dev.btfs.io",
HubDomain: "https://score-dev.btfs.io",
EscrowDomain: "https://escrow-dev.btfs.io",
Expand All @@ -246,7 +246,7 @@ func DefaultServicesConfigDev() Services {
// DefaultServicesConfigTestnet returns the default set of configs for testnet external services.
func DefaultServicesConfigTestnet() Services {
return Services{
StatusServerDomain: "https://status-staging.btfs.io",
//StatusServerDomain: "https://status-staging.btfs.io",
OnlineServerDomain: "https://online-staging.btfs.io",
HubDomain: "https://score-staging.btfs.io",
EscrowDomain: "https://escrow-staging.btfs.io",
Expand Down
10 changes: 5 additions & 5 deletions migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ func migrate_1_Services(cfg *Config) bool {
}

func migrate_2_StatusUrl(cfg *Config) bool {
if strings.Contains(cfg.Services.StatusServerDomain, "db.btfs.io") {
ds := DefaultServicesConfig()
cfg.Services.StatusServerDomain = ds.StatusServerDomain
return true
}
//if strings.Contains(cfg.Services.StatusServerDomain, "db.btfs.io") {
// ds := DefaultServicesConfig()
// cfg.Services.StatusServerDomain = ds.StatusServerDomain
// return true
//}
return false
}

Expand Down
2 changes: 1 addition & 1 deletion services.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

type Services struct {
StatusServerDomain string
//StatusServerDomain string
OnlineServerDomain string
HubDomain string
EscrowDomain string
Expand Down

0 comments on commit 9d28f4f

Please sign in to comment.