cleanup
This commit is contained in:
parent
e79c589b5d
commit
99c99f6923
2 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue