Use infinite loop
This commit is contained in:
parent
eac946690b
commit
bc121ce87b
13
main.go
13
main.go
|
@ -1,9 +1,14 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
stories := FetchHackerNewsTopStories()
|
for {
|
||||||
filtered := CurateContentForStackerNews(&stories)
|
stories := FetchHackerNewsTopStories()
|
||||||
for _, story := range *filtered {
|
filtered := CurateContentForStackerNews(&stories)
|
||||||
PostStoryToStackerNews(&story)
|
for _, story := range *filtered {
|
||||||
|
PostStoryToStackerNews(&story)
|
||||||
|
}
|
||||||
|
time.Sleep(time.Hour)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue