Commit 2c242dfa authored by vicotor's avatar vicotor

add interval for request history

parent 0ce4476c
......@@ -136,6 +136,7 @@ func (p *PageUsers) Request(tweetId string, id string, next string, f req) ([]Us
waitTime := time.Until(rt.Reset.Time().Add(500 * time.Millisecond))
time.Sleep(waitTime)
}
time.Sleep(2 * time.Second)
return p.Request(tweetId, id, newNext, f)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment