broke the build, this fixes it.

dev
Jeffrey Paul 4 years ago
parent 5d7ecfa2cc
commit fe1c4df4f1
  1. 17
      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

Loading…
Cancel
Save