Closed ritiek closed 3 years ago
ee there's stuff failing here, i'll check what's up.
ee there's stuff failing here, i'll check what's up.
Ok. I fixed the clippy warning and it seems like MusicBrainz servers can sometimes return a lower retry-after header value than what the actual value is. I inserted a comment in the code covering about this.
Rebased.
This PR adds an auto-retry feature if a request fails due to being rate-limited by MusicBrainz servers. By default; every failed request will automatically be retried twice. This number can be changed by calling:
I've also removed the 1s sleep from all our tests, and our test-suite now runs much faster (~2 mins now, while it used to take ~3.5 mins previously!).
Closes #13.