mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 05:29:20 +00:00
cleanup
This commit is contained in:
parent
e79c589b5d
commit
99c99f6923
@ -67,8 +67,10 @@ func (h *Handler) startJobs() {
|
|||||||
}
|
}
|
||||||
go h.db.DeleteOldItems()
|
go h.db.DeleteOldItems()
|
||||||
go h.db.SyncSearch()
|
go h.db.SyncSearch()
|
||||||
|
//h.fetchAllFeeds()
|
||||||
|
}
|
||||||
|
|
||||||
// fetch all feeds
|
func (h *Handler) fetchAllFeeds() {
|
||||||
for _, feed := range h.db.ListFeeds() {
|
for _, feed := range h.db.ListFeeds() {
|
||||||
h.fetchFeed(feed)
|
h.fetchFeed(feed)
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,6 @@ func (s *Storage) SyncSearch() {
|
|||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var item Item
|
var item Item
|
||||||
rows.Scan(&item.Id, &item.Title, &item.Content, &item.Description)
|
rows.Scan(&item.Id, &item.Title, &item.Content, &item.Description)
|
||||||
fmt.Println(item)
|
|
||||||
items = append(items, item)
|
items = append(items, item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user