Remove unused config params
Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
parent
40dfd00779
commit
23d59f96bf
1 changed files with 0 additions and 8 deletions
|
@ -13,12 +13,6 @@ type Config struct {
|
|||
Database struct {
|
||||
DSN string
|
||||
}
|
||||
HTTP struct {
|
||||
Address string
|
||||
}
|
||||
Datasette struct {
|
||||
Address string
|
||||
}
|
||||
}
|
||||
|
||||
func Load() (*Config, error) {
|
||||
|
@ -29,9 +23,7 @@ func Load() (*Config, error) {
|
|||
|
||||
conf := new(Config)
|
||||
conf.Ingest.Address = asString(cl.withDefault("ingest.address", "127.0.0.1:7500"))
|
||||
conf.HTTP.Address = asString(cl.withDefault("http.address", "127.0.0.1:8080"))
|
||||
conf.Database.DSN = asString(cl.withDefault("database.dsn", "analytics.db"))
|
||||
conf.Datasette.Address = asString(cl.withDefault("datasette.address", "127.0.0.1:8001"))
|
||||
|
||||
return conf, nil
|
||||
}
|
||||
|
|
Reference in a new issue