• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattn / go-mastodon / 299
90%

Build:
DEFAULT BRANCH: master
Ran 14 May 2019 05:57AM UTC
Jobs 1
Files 13
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2019 05:52AM UTC coverage: 90.748% (-0.8%) from 91.5%
299

push

travis-ci

mattn
Handle HTTP 429 responses with a request backoff approach

Since it's difficult to wrap all possible go-mastodon API calls in a backoff
algorithm outside of the package itself, I decided to implement a simple
version of it in go-mastodon's doAPI itself.

This works nicely, but could be improved in two ways still:

- Abort sleeping when context gets cancelled
- Make backoff optional / configurable

Personally, I still think this is a good start and probably fits most of
go-mastodon's use-cases. It certainly beats string-grepping for status code
"429" in clients.

22 of 22 new or added lines in 1 file covered. (100.0%)

922 of 1016 relevant lines covered (90.75%)

1536.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 299.1 14 May 2019 05:57AM UTC 0
90.75
Travis Job 299.1
Source Files on build 299
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #299
  • bb2662b3 on github
  • Prev Build on master (#294)
  • Next Build on master (#300)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc