From 736a3d036071bea843924af38244e513b79799ec Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Thu, 8 Jul 2021 23:27:26 +0200 Subject: [PATCH] Reduce chunkSize to avoid internal error --- pkg/ircslack/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ircslack/users.go b/pkg/ircslack/users.go index e4ea232..dba69ea 100644 --- a/pkg/ircslack/users.go +++ b/pkg/ircslack/users.go @@ -46,7 +46,7 @@ func (u *Users) FetchByIDs(client *slack.Client, skipCache bool, userIDs ...stri } else { toRetrieve = userIDs } - chunkSize := 1000 + chunkSize := 30 allFetchedUsers := make([]slack.User, 0, len(userIDs)) for i := 0; i < len(toRetrieve); i += chunkSize { upperLimit := i + chunkSize