diff --git a/cmd/serve/main.go b/cmd/serve/main.go index 447a77a..2a15152 100644 --- a/cmd/serve/main.go +++ b/cmd/serve/main.go @@ -111,8 +111,8 @@ func main() { if c.DBPass != "" { c.DBPass = obscureStr(c.DBPass, 3) } - if c.Discogs_Token != "" { - c.Discogs_Token = obscureStr(c.Discogs_Token, 3) + if c.DiscogsToken != "" { + c.DiscogsToken = obscureStr(c.DiscogsToken, 3) } log.Fatalf("vars: %+v", c) } @@ -129,7 +129,7 @@ func main() { log.Fatalln(err) } log.Printf("latest migration: %d; migrations run: %d", latest, run) - discogsCache, err := database.NewDiscogsCache(c.Discogs_Token, time.Hour*24, "delta.mu.alpha") + discogsCache, err := database.NewDiscogsCache(c.DiscogsToken, time.Hour*24, "delta.mu.alpha") if err != nil { log.Fatalln(err) } diff --git a/config/config.go b/config/config.go index 325f95d..3da0fee 100644 --- a/config/config.go +++ b/config/config.go @@ -1,11 +1,11 @@ package config type Config struct { - DBUser string - DBPass string - DBHost string - DBPort string - DBName string - Discogs_Token string - Debug bool + DBUser string + DBPass string + DBHost string + DBPort string + DBName string + DiscogsToken string + Debug bool }