Commit 6844402e authored by vicotor's avatar vicotor

fix bug

parent 9dd701e5
......@@ -184,13 +184,12 @@ func (f *FollowerRateLimit) Follower(userName string, cursor string) ([]*twitter
select {
case account := <-accChan:
accChan <- account
history[account.AccountInfo.Username] = true
if _, exist := history[account.AccountInfo.Username]; exist {
// loop all account, exit.
try = 100
break
}
history[account.AccountInfo.Username] = true
if users, next, err = account.FetchFollowers(userName, 1000, cursor); err != nil {
slog.Error("FetchFollowers", "failed", err.Error())
continue
......
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