Skip to content

Commit 2d61cf6

Browse files
committed
check correct config to start server
1 parent bb8e62e commit 2d61cf6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ type Config struct {
4040
OverwriteData bool `yaml:"overwrite_data"`
4141
BingToken string `yaml:"bing_token"`
4242
ServerConfig ServerConfig `yaml:"server"`
43-
ServerPort int64 `yaml:"server_port"`
4443
AdHocCacheEntries int `yaml:"ad_hoc_cache_entries"`
4544
Sources struct {
4645
Enabled []string

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func main() {
5252
Forecasters: forecasters,
5353
}
5454
scheduler.Start()
55-
if config.ServerPort == 0 {
55+
if config.ServerConfig.Port == 0 {
5656
// no port specified, keep other goroutines running
5757
runtime.Goexit()
5858
} else {

0 commit comments

Comments
 (0)