koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.25k stars 300 forks source link

change token used only when Ratelimit is reached #347

Closed tc-ubnt closed 2 years ago

tc-ubnt commented 2 years ago

I'm sorry it took me a while before I got to this. This is promised follow-up for #309.

Using different tokens for each call lead to cache problems on digitalocean side and caused significant slow-down of the calls.

Instead of using different token for every call, rotate only when RateLimit is reached.

tc-ubnt commented 2 years ago

cc @jaroklima