From ffe6670ec88f6299b313bad7ea78be27d5674870 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 24 Mar 2020 21:15:40 -0700 Subject: [PATCH] will no longer grow db unbounded --- hn/fetcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hn/fetcher.go b/hn/fetcher.go index df069fc..471ffe3 100644 --- a/hn/fetcher.go +++ b/hn/fetcher.go @@ -92,7 +92,8 @@ func (f *Fetcher) StoreFrontPage() error { //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 // 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 var c int