mattn / go-mastodon

mastodon client for golang
MIT License
600 stars 85 forks source link

Use a slightly more aggressive backoff approach #108

Closed muesli closed 5 years ago

muesli commented 5 years ago

Doubling the backoff every iteration turned out to be a bit too relaxed for the common situations where you run into API throttling. This change gives the API enough room to breathe, but re-tries requests just a little more often.

codecov-io commented 5 years ago

Codecov Report

Merging #108 into master will not change coverage. The diff coverage is 50%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #108   +/-   ##
=======================================
  Coverage   80.02%   80.02%           
=======================================
  Files          29       29           
  Lines        1437     1437           
=======================================
  Hits         1150     1150           
  Misses        200      200           
  Partials       87       87
Impacted Files Coverage Δ
mastodon.go 70.22% <50%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 26fcedc...8766091. Read the comment docs.

mattn commented 5 years ago

Good. Thank you.