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()
|
||||
cache.SetCacheDir(viper.GetString("CACHE_DIR"))
|
||||
cache.SetDefaultPath(viper.GetString("DEFAULT_IMAGE_PATH"))
|
||||
cache.LoadCache(viper.GetString("CACHE_FILE"))
|
||||
r := newRenderer()
|
||||
c, _ := CONN.CurrentSong()
|
||||
if len(c) != 0 {
|
||||
@ -256,5 +254,4 @@ func main() {
|
||||
if err := UI.App.Run(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
cache.WriteCache(viper.GetString("CACHE_FILE"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user