From 59dcc2d2172d79640ad8d39f7c7367ccc7f02439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20D=C3=B6tsch?= Date: Fri, 19 Jul 2024 15:43:36 +0200 Subject: [PATCH] export: more delay --- command/export/export.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/export/export.go b/command/export/export.go index ddfc93bb..e8614db8 100644 --- a/command/export/export.go +++ b/command/export/export.go @@ -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 } @@ -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 {