No Need to Load and Write Cache now.
This commit is contained in:
parent
1d9fe23b00
commit
10566d87a1
3
main.go
3
main.go
@ -34,8 +34,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer CONN.Close()
|
defer CONN.Close()
|
||||||
cache.SetCacheDir(viper.GetString("CACHE_DIR"))
|
cache.SetCacheDir(viper.GetString("CACHE_DIR"))
|
||||||
cache.SetDefaultPath(viper.GetString("DEFAULT_IMAGE_PATH"))
|
|
||||||
cache.LoadCache(viper.GetString("CACHE_FILE"))
|
|
||||||
r := newRenderer()
|
r := newRenderer()
|
||||||
c, _ := CONN.CurrentSong()
|
c, _ := CONN.CurrentSong()
|
||||||
if len(c) != 0 {
|
if len(c) != 0 {
|
||||||
@ -256,5 +254,4 @@ func main() {
|
|||||||
if err := UI.App.Run(); err != nil {
|
if err := UI.App.Run(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
cache.WriteCache(viper.GetString("CACHE_FILE"))
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user