Skip to content

Commit

Permalink
Merge pull request #597 from innogames/export_rate_limit
Browse files Browse the repository at this point in the history
export: more delay
  • Loading branch information
brainexe authored Jul 21, 2024
2 parents 96cf388 + 53898a7 commit 783419f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func getConversations(client client.SlackClient, channelID string) ([]slack.Mess
break
}
params.Cursor = history.ResponseMetaData.NextCursor
time.Sleep(250 * time.Millisecond) // Avoid rate limiting
time.Sleep(500 * time.Millisecond) // Avoid rate limiting
}
return messages, nil
}
Expand Down Expand Up @@ -135,7 +135,7 @@ func exportChannelMessagesToBuffer(client client.SlackClient, channelID string)
}
}
// rate limit...
time.Sleep(50 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
}

if lines > limit {
Expand Down

0 comments on commit 783419f

Please sign in to comment.