for {
if tweetStream.Connection() == false {
tweetStream, err = c.TweetSearchStream(ctx, opts)
if err != nil {
time.Sleep(time.Second * 60 * 3)
continue
}
}
select {}
}
This is my code , but Twitter always return twitter callout status 429 ConnectionException:This stream is currently at the maximum allowed connection limit.
so, I want to know if tweetStream.Connection() == false How to restart tweetStream.