No Need to Load and Write Cache now.

This commit is contained in:
aditya-K2 2021-12-09 02:30:59 +05:30
parent 1d9fe23b00
commit 10566d87a1
1 changed files with 0 additions and 3 deletions

View File

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