Skip to content

Commit

Permalink
fix example: continue in loop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavxd committed Dec 22, 2021
1 parent ef2b2db commit 2f8c154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func main() {
chat, newContinuation, error := YtChat.FetchContinuationChat(continuation, cfg)
if error != nil {
log.Print(error)
continue
}
continuation = newContinuation
for _, msg := range chat {
Expand Down
1 change: 1 addition & 0 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func main() {
chat, newContinuation, error := YtChat.FetchContinuationChat(continuation, cfg)
if error != nil {
log.Print(error)
continue
}
continuation = newContinuation
for _, msg := range chat {
Expand Down

0 comments on commit 2f8c154

Please sign in to comment.