Skip to content

Commit 137e911

Browse files
authored
fix: don't require database config to start gsw (#60)
1 parent c48247e commit 137e911

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

cmd/gsw_service.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ func readConfig() (*viper.Viper, int) {
128128
logger.Warn("Config file not found, reading config from environment variables")
129129
}
130130
}
131-
if !config.IsSet("database_host_name") {
132-
logger.Panic("Error reading GSW config: database_host_name not set...")
133-
}
134-
if !config.IsSet("database_port_number") {
135-
logger.Panic("Error reading GSW config: database_port_number not set...")
136-
}
137131

138132
return config, *doPprof
139133
}

0 commit comments

Comments
 (0)