Skip to content

Commit

Permalink
check correct config to start server
Browse files Browse the repository at this point in the history
  • Loading branch information
tedpearson committed Oct 22, 2023
1 parent bb8e62e commit 2d61cf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ type Config struct {
OverwriteData bool `yaml:"overwrite_data"`
BingToken string `yaml:"bing_token"`
ServerConfig ServerConfig `yaml:"server"`
ServerPort int64 `yaml:"server_port"`
AdHocCacheEntries int `yaml:"ad_hoc_cache_entries"`
Sources struct {
Enabled []string
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func main() {
Forecasters: forecasters,
}
scheduler.Start()
if config.ServerPort == 0 {
if config.ServerConfig.Port == 0 {
// no port specified, keep other goroutines running
runtime.Goexit()
} else {
Expand Down

0 comments on commit 2d61cf6

Please sign in to comment.