Removed old patches

This commit is contained in:
2017-11-01 20:11:05 +01:00
parent e70dc0daed
commit cf00461feb
28 changed files with 57 additions and 403 deletions

View File

@ -7,12 +7,10 @@ import (
)
func main() {
// Get a stream of all posts
allPosts, err := arn.StreamPosts()
arn.PanicOnError(err)
defer arn.Node.Close()
// Iterate over the stream
for post := range allPosts {
for post := range arn.StreamPosts() {
// Fix text
color.Yellow(post.Text)
post.Text = autocorrect.FixPostText(post.Text)
@ -24,7 +22,6 @@ func main() {
}
// Save
err = post.Save()
arn.PanicOnError(err)
post.Save()
}
}