From fe1c4df4f12a6581d5ab8f0992404cb6653e8b07 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 24 Mar 2020 21:21:09 -0700 Subject: [PATCH] broke the build, this fixes it. --- hn/fetcher.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/hn/fetcher.go b/hn/fetcher.go index 471ffe3..ca30f5e 100644 --- a/hn/fetcher.go +++ b/hn/fetcher.go @@ -82,13 +82,16 @@ func (f *Fetcher) StoreFrontPage() error { if err != nil { return (err) } - s := HNStoryRank{ - HNID: uint(id), - Rank: uint(i + 1), - URL: item.URL, - Title: item.Title, - FetchedAt: t, - } + /* + s := HNStoryRank{ + HNID: uint(id), + Rank: uint(i + 1), + URL: item.URL, + Title: item.Title, + FetchedAt: t, + } + */ + //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