Okay, I have a code pattern that essentially gets a list of folders then for each folder's UID I need to call another API to get the permissions. This seemed like a great place to add concurrency. Here's my attempt below. This works flawlessly as a serial call, what am I doing wrong here?
https://gist.github.com/safaci2000/686662417357b17ff7a4eba13b560b70
Output is partially working and the rest gives me:
ERRO[0000] Unable to get folder permissions for folderUID: MI9wf527z error="[GET /folders/{folder_uid}/permissions][500] getFolderPermissionListInternalServerError &{Error: Message:0xc000e0a770 Status:}" message="invalid API key"
ERRO[0000] Unable to get folder permissions for folderUID: OTNUyTwVz error="[GET /folders/{folder_uid}/permissions][500] getFolderPermissionListInternalServerError &{Error: Message:0xc00018aa50 Status:}" message="invalid API key"
...etc
This is going against grafana which should be able to handle multiple API calls at the same time, I'd hope.