Skip to content

Commit

Permalink
export: more delay
Browse files Browse the repository at this point in the history
  • Loading branch information
brainexe committed Jul 19, 2024
1 parent a1819ac commit 59dcc2d
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(150 * time.Millisecond)
}

if lines > limit {
Expand Down

0 comments on commit 59dcc2d

Please sign in to comment.