will no longer grow db unbounded

This commit is contained in:
Jeffrey Paul 2020-03-24 21:15:40 -07:00
parent cc2e470ffe
commit ffe6670ec8

View File

@ -92,7 +92,8 @@ func (f *Fetcher) StoreFrontPage() error {
//f.log.Debug().Msgf("storing story with rank %d in db", (i + 1)) //f.log.Debug().Msgf("storing story with rank %d in db", (i + 1))
// FIXME this will grow unbounded and make the file too big if // FIXME this will grow unbounded and make the file too big if
// I don't clean this up or otherwise limit the data in here // I don't clean this up or otherwise limit the data in here
f.db.Create(&s) // disabled for now
//f.db.Create(&s)
// check to see if the item was on the frontpage already or not // check to see if the item was on the frontpage already or not
var c int var c int