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

mattn / go-mastodon / 275
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: direct
DEFAULT BRANCH: master
Ran 26 Nov 2018 03:38AM UTC
Jobs 1
Files 12
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

26 Nov 2018 03:34AM UTC coverage: 90.96% (-0.4%) from 91.403%
275

Pull #85

travis-ci

web-flow
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 called
- 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.
Pull Request #85: Handle HTTP 429 responses with a request backoff approach

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

815 of 896 relevant lines covered (90.96%)

1951.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 275.1 26 Nov 2018 03:38AM UTC 0
90.96
Travis Job 275.1
Source Files on build 275
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #275
  • Pull Request #85
  • PR Base - master (#274)
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

© 2026 Coveralls, Inc