Skip to content

Commit

Permalink
chore: remove pool health check interval from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
anomit committed Oct 28, 2024
1 parent 621c469 commit 7da90e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ type Settings struct {
PortNumber string `json:"LocalCollectorPort"`
TrustedRelayersListUrl string `json:"TrustedRelayersListUrl"`
DataMarketAddress string `json:"DataMarketAddress"`
MaxStreamPoolSize int `json:"MaxStreamPoolSize"`
StreamPoolHealthCheckInterval int `json:"StreamPoolHealthCheckInterval"`
MaxStreamPoolSize int `json:"MaxStreamPoolSize"`
}

func LoadConfig() {
Expand Down Expand Up @@ -51,9 +50,6 @@ func LoadConfig() {
if config.MaxStreamPoolSize == 0 {
config.MaxStreamPoolSize = 2 // Default to 2 as per your current setup
}
if config.StreamPoolHealthCheckInterval == 0 {
config.StreamPoolHealthCheckInterval = 30 // Default to 30 seconds
}

SettingsObj = &config
}

0 comments on commit 7da90e5

Please sign in to comment.