broke the build, this fixes it.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jeffrey Paul 2020-03-24 21:21:09 -07:00
parent 5d7ecfa2cc
commit fe1c4df4f1
1 changed files with 10 additions and 7 deletions

View File

@ -82,13 +82,16 @@ func (f *Fetcher) StoreFrontPage() error {
if err != nil { if err != nil {
return (err) return (err)
} }
s := HNStoryRank{ /*
HNID: uint(id), s := HNStoryRank{
Rank: uint(i + 1), HNID: uint(id),
URL: item.URL, Rank: uint(i + 1),
Title: item.Title, URL: item.URL,
FetchedAt: t, Title: item.Title,
} FetchedAt: t,
}
*/
//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