cache feed icons

This commit is contained in:
Nazar Kanaev
2021-05-27 13:16:03 +01:00
parent 214c7aacfc
commit f38dcfba3b
3 changed files with 85 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ type Server struct {
Addr string
db *storage.Storage
worker *worker.Worker
cache map[string]interface{}
BasePath string
@@ -28,6 +29,7 @@ func NewServer(db *storage.Storage, addr string) *Server {
db: db,
Addr: addr,
worker: worker.NewWorker(db),
cache: make(map[string]interface{}),
}
}