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