discogs #2
@ -111,8 +111,8 @@ func main() {
|
|||||||
if c.DBPass != "" {
|
if c.DBPass != "" {
|
||||||
c.DBPass = obscureStr(c.DBPass, 3)
|
c.DBPass = obscureStr(c.DBPass, 3)
|
||||||
}
|
}
|
||||||
if c.Discogs_Token != "" {
|
if c.DiscogsToken != "" {
|
||||||
c.Discogs_Token = obscureStr(c.Discogs_Token, 3)
|
c.DiscogsToken = obscureStr(c.DiscogsToken, 3)
|
||||||
}
|
}
|
||||||
log.Fatalf("vars: %+v", c)
|
log.Fatalf("vars: %+v", c)
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ func main() {
|
|||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
log.Printf("latest migration: %d; migrations run: %d", latest, run)
|
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 {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
DBUser string
|
DBUser string
|
||||||
DBPass string
|
DBPass string
|
||||||
DBHost string
|
DBHost string
|
||||||
DBPort string
|
DBPort string
|
||||||
DBName string
|
DBName string
|
||||||
Discogs_Token string
|
DiscogsToken string
|
||||||
Debug bool
|
Debug bool
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user