Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Rate limiting in shell scripts needed #12

Closed
leontebbens opened this issue Jul 16, 2019 · 2 comments
Closed

Rate limiting in shell scripts needed #12

leontebbens opened this issue Jul 16, 2019 · 2 comments

Comments

@leontebbens
Copy link
Contributor

leontebbens commented Jul 16, 2019

There is a solution for #9, however the shell scripts in folder shell_script also lack rate limiting.
My solution is to add "sleep 1" after the PUT curl:
curl -s -X PUT -H "Authorization: bearer $api_key" -H "Accept: application/vnd.github.london-preview+json" $enable_url
sleep 1 #rate limiting to prevent blocking by github server

In both shell scripts

@leontebbens
Copy link
Contributor Author

I've made a pull request

@jhutchings1
Copy link
Contributor

Thanks @leontebbens ✨ I reviewed and merged your PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants