discogs #2

Merged
alazyreader merged 5 commits from discogs into master 2022-04-02 21:21:23 +00:00
2 changed files with 10 additions and 10 deletions
Showing only changes of commit 474ea9b57c - Show all commits

View File

@ -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)
}

View File

@ -6,6 +6,6 @@ type Config struct {
DBHost string
DBPort string
DBName string
Discogs_Token string
DiscogsToken string
Debug bool
}